[ET Trac] [Einstein Toolkit] #1162: Slowdown due to gethostbyname

Einstein Toolkit trac-noreply at einsteintoolkit.org
Mon Nov 19 08:27:14 CST 2012


#1162: Slowdown due to gethostbyname
---------------------+------------------------------------------------------
  Reporter:  hinder  |       Owner:             
      Type:  defect  |      Status:  reviewed_ok
  Priority:  minor   |   Milestone:             
 Component:  Cactus  |     Version:             
Resolution:          |    Keywords:             
---------------------+------------------------------------------------------

Comment (by eschnett):

 No, we can't use the "length" variable passed in, because the first call
 may pass length=1, and the next may pass length=100. A typical operating
 system length limit may be 64.

 Also, static variable probably cannot be VLAs.

 Yes, there is no such logic, but there was no such logic there before
 either. The patch doesn't add error checking.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1162#comment:4>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list