-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Whenever data is read via load
or read
, the data Ini
instance is mutated in place, but a clone of the inner data is returned too. So I end up with two copies of the data.
Why return a clone of the data? HashMap
's Clone
implementation is recursive, so this ends up copying the entire structure. Am I missing something here?
Is it somehow possible to do something like Init::read
, but only get one copy of the data in memory? I don't need two copies. I know that I can just drop the clone, but I don't see the point it copying data just to drop it.
Metadata
Metadata
Assignees
Labels
No labels