Differences From Artifact [8b036ac867]:
- File
src/OFXMLParser.m
— part of check-in
[0ddaac3f5b]
at
2020-11-05 00:24:29
on branch trunk
— Avoid -[allocMemoryWithSize:] for temporary memory
-[allocMemoryWithSize:] has book keeping overhead that is unnecessary
for temporary memory. (user: js, size: 28058) [annotate] [blame] [check-ins using] [more...]
To Artifact [0dd447c3c4]:
- File
src/OFXMLParser.m
— part of check-in
[627511b032]
at
2020-11-14 12:23:55
on branch trunk
— Rename of_malloc and of_calloc
The new names should be more accurate. (user: js, size: 28057) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
274 275 276 277 278 279 280 |
[self parseBuffer: string.UTF8String
length: string.UTF8StringLength];
}
- (void)parseStream: (OFStream *)stream
{
size_t pageSize = [OFSystemInfo pageSize];
| | | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
[self parseBuffer: string.UTF8String
length: string.UTF8StringLength];
}
- (void)parseStream: (OFStream *)stream
{
size_t pageSize = [OFSystemInfo pageSize];
char *buffer = of_alloc(1, pageSize);
@try {
while (!stream.atEndOfStream) {
size_t length = [stream readIntoBuffer: buffer
length: pageSize];
[self parseBuffer: buffer
|
| ︙ | ︙ |