Differences From Artifact [fee37530e3]:
- File
src/OFString.m
— part of check-in
[36e8a94f34]
at
2011-07-09 14:45:44
on branch trunk
— Cache the length of a string.
Also removes -[appendCStringWithoutUTF8Checking:] as it is dangerous and
not compatible with this optimization. (user: js, size: 43190) [annotate] [blame] [check-ins using]
To Artifact [9e62f802e4]:
- File src/OFString.m — part of check-in [a855618045] at 2011-08-03 00:30:04 on branch trunk — Make OFArray an abstract class. (user: js, size: 42736) [annotate] [blame] [check-ins using]
︙ | |||
1579 1580 1581 1582 1583 1584 1585 | 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 | - - - - - - - + | i += cStringLength - 1; last = i + 1; } [array addObject: [OFString stringWithCString: s->cString + last]]; [pool release]; |
︙ | |||
1627 1628 1629 1630 1631 1632 1633 | 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 | - - - - - - - + | } [ret addObject: [OFString stringWithCString: s->cString + last length: i - last]]; [pool release]; |
︙ |