Differences From Artifact [d6200e89ce]:
- File src/OFDictionary.m — part of check-in [e0d581d524] at 2010-06-13 17:42:09 on branch trunk — Fix initialization of mutations in OF{Array,Dictionary}Enumerator. (user: js, size: 14063) [annotate] [blame] [check-ins using] [more...]
To Artifact [3d989f9035]:
- File
src/OFDictionary.m
— part of check-in
[d4b379485a]
at
2010-07-08 08:57:00
on branch trunk
— Don't retain + autorelease objects returned from collections.
This increases performance and should not need to be handled by the
programmer in most cases. (user: js, size: 14017) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
543 544 545 546 547 548 549 | last = size; for (i = hash & (size - 1); i < last && data[i] != NULL; i++) { if (data[i] == DELETED) continue; if ([data[i]->key isEqual: key]) | | | | 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | last = size; for (i = hash & (size - 1); i < last && data[i] != NULL; i++) { if (data[i] == DELETED) continue; if ([data[i]->key isEqual: key]) return data[i]->object; } if (i < last) return nil; /* In case the last bucket is already used */ last = hash & (size - 1); for (i = 0; i < last && data[i] != NULL; i++) { if (data[i] == DELETED) continue; if ([data[i]->key isEqual: key]) return data[i]->object; } return nil; } - (size_t)count { |
︙ | ︙ |