View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000300 | Ecere SDK | ide | public | 2010-01-07 08:08 | 2012-03-29 07:52 |
Reporter | sacrebleu | Assigned To | jerome | ||
Priority | normal | Severity | minor | Reproducibility | random |
Status | closed | Resolution | not fixable | ||
Summary | 0000300: keywords that create pre-computation instructions for use in interface functions for windows | ||||
Description | string 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 *. | ||||
Tags | No tags attached. | ||||
child of | 0000433 | closed | previously resolved issues (draft 1 of 0.44 and earlier) |
|
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. |
|
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. |
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 |