[CF-Devel] artifact list error

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Tue Mar 2 14:29:27 CST 2004


Mark said:
>
     
        The memory usage is trivial - that 256 is just a buffer that is allocated when 
     
     >
     
      reading the data.
     
     >
     
     
     >
     
        When storing the data, it only allocates sufficient space for the string, so 
     
     >
     
      if only 10 characters were used, that is all that would be allocated.¹
     
     >
     
     
     >
     
      Note that just having shorter lists may be easier to deal with in terms of 
     
     >
     
      editors and other tools, since there is no \ continuation character or the like.
     
     >
     
     
     >
     
        In any case, in almost all cases, the extra memory would be pretty trivial 
     
     >
     
      either way, because there is just one copy of the data stored away (eg, one 
     
     >
     
      artifact entry or whatever).
     
     
I've changed the buffer as suggested by Bernd as it is minimal impact
and fixed the existing problem.  


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list