View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000300Ecere SDKidepublic2010-01-07 08:082012-03-29 07:52
Reportersacrebleu 
Assigned Tojerome 
PrioritynormalSeverityminorReproducibilityrandom
StatusclosedResolutionnot fixable 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
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.
Attached Files

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

-  Notes
(0000141)
sacrebleu (reporter)
2010-01-07 08:11

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.
(0000142)
sacrebleu (reporter)
2010-01-07 08:13
edited on: 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 20:42 redj Relationship added child of 0000430
2010-07-25 21:43 redj Relationship deleted child of 0000430
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



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker