View Issue Details

IDProjectCategoryView StatusLast Update
0000300Ecere SDKidepublic2012-03-29 07:52
Reportersacrebleu Assigned Tojerome  
PrioritynormalSeverityminorReproducibilityrandom
Status closedResolutionnot fixable 
Summary0000300: keywords that create pre-computation instructions for use in interface functions for windows
Descriptionstring lengths should be precomputed in the String class:

   surface.WriteText(xx+5,yy+dy,buf,strlen(buf));

this is not optimal.
   surface.WriteText(xx+5,yy+dx,string, string.length);

String and char * should be interchangeable, and throw a compiler warning when you overstep the bounds of the functional subset of char *.
TagsNo tags attached.

Relationships

child of 0000433 closed previously resolved issues (draft 1 of 0.44 and earlier) 

Activities

sacrebleu

2010-01-07 08:11

reporter   ~0000141

Note: this is basically achieved now by doing:

class String {
 char *content;
 int length;
 void Set( char *s ) {
  s=CopyString(content);
  length=strlen(s);
 }
}

However, there may be a way to do this more quickly for real-time data.

sacrebleu

2010-01-07 08:13

reporter   ~0000142

Last edited: 2010-01-07 08:13

I guess I forgot to mention at the beginning that the string was recently modified.

This same optimization (only intermittently updating the string) could be true of the font library. See Open Art Engine extension re: generating typographic output for graphics.

Issue History

Date Modified Username Field Change
2010-01-07 08:08 sacrebleu New Issue
2010-01-07 08:08 sacrebleu Status new => assigned
2010-01-07 08:08 sacrebleu Assigned To => jerome
2010-01-07 08:11 sacrebleu Note Added: 0000141
2010-01-07 08:13 sacrebleu Note Added: 0000142
2010-01-07 08:13 sacrebleu Note Edited: 0000142
2010-01-07 08:16 sacrebleu Status assigned => closed
2010-01-07 08:16 sacrebleu Resolution open => not fixable
2010-07-25 21:43 redj Relationship added child of 0000433
2012-03-29 07:52 redj Category => ide
2012-03-29 07:52 redj Project @3@ => Ecere SDK