josh
Programmer · Account member
josh's latest activity
Thursday, August 14 2008
-
- State changed from open to resolved
Marshal load can take a file object and parse it as it reads the file. It is much faster than reading the whole file into a buffer and than unmarshaling it. Aft...
Wednesday, August 13 2008
-
josh commented at 1:53 AMIs there an easy to way to still read/write strings without marshaling? Just concerned about the speed impact.
-
josh commented at 1:45 AM@Ryan I meant to have Store#write call freeze on the the given value. freeze should also be called on the retrieved value as well. Requiring "frozen?" to be tru...
Monday, August 11 2008
-
josh commented at 9:09 PM@Ryan good point about the mutable contents. I think all cached objects oughta be immutable.
I also think a NoStore option would be a good workaround. I would ...
-
- Title changed from MemoryStore cache contents should be dup'd.. to MemoryStore cache contents should be immutable
- State changed from new to open
- Assigned user set to josh
- Tag changed from activesupport, bug, patch to activesupport, patch
I'm of the opinion that all cache store should be immutable. So freeze every object on write. If you need a mutable copy, dup at your own expense.
-
- State changed from new to open
- Assigned user set to josh
- Tag changed from activesupport, bug, patch to activesupport, patch
Skip the the :raw option and always marshal for consistent behavior. That raw option was only there to pass to memcache-client, we don't need it at the moment. ...