-
Notifications
You must be signed in to change notification settings - Fork 36
Refactor EnumMap - fixes #91 #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
436164f to
6227f02
Compare
|
@prolic As you can see the changes will make it a but slower - If you have a another idea how to fix this and how to make |
|
@marc-mabe Let me check this weekend. I am very busy these days. |
|
Yea - no problem - thanks |
|
Looks good to me. About the benchOffsetSet*-methods: I have no idea why this is taking so much memory. You could debug with |
8337a8a to
cb53736
Compare
EnumMapis serializable, tooSplObjectStorageSerializableArrayAccess,CountableandIteratorSeekableIteratorpublic function attach($enumerator) : voidpublic function offsetSet($enumerator) : voidpublic function detach($enumerator): voidpublic function offsetUnset($enumerator) : voidpublic addAll(SplObjectStorage $storage) : voidpublic getHash(object $object) : stringpublic removeAll(SplObjectStorage $storage) : voidpublic removeAllExcept(SplObjectStorage $storage) : voidpublic serialize(void) : stringpublic setInfo(mixed $data) : voidpublic unserialize(string $serialized) : voidpublic contains($enumerator) : boolpublic offsetExists($enumerator) : boolbut returns true onNULLvaluespublic function seek(int $pos) : voidpublic function getKeys() : Enum[]public function getValues() : mixed[]public function search($enumerator, bool $strict) : Enum|nullfixes #91