tommyettinger commented on issue #1409:
URL: 
https://github.com/apache/incubator-fury/issues/1409#issuecomment-2053941441

   Well, the `FlipMap` turned out to be significantly slower than all other 
maps I tried, due to an error I made when writing `put()` and related code. 
With `put()` fixed so it actually puts a key and value in place, `FlipMap` is 
quite slow... I've been thinking about alternatives, though.
   
   I've never used `ClassValue`, myself, but could it maybe be possible to 
avoid any Class-based hashtable if a ClassValue was registered 
per-Fury-instance that stores (somehow) a registered ID for a Class, in the 
Class itself? I also looked into hacky ways that might allow `sun.misc.Unsafe` 
to store an id directly in a Class, but even if that could work, it doesn't 
allow multiple `Fury` instances to have different registered classes. 
ClassValue might be able to do it, but I really have no idea what I am doing 
with that code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to