Added IEntityFactory to abstract creation of entities during read.#24
Added IEntityFactory to abstract creation of entities during read.#24dementeddevil wants to merge 1 commit intomperdeck:masterfrom
Conversation
…w entity objects when reading a CSV stream. This change allows the use of object-pooling semantics to reduce memory pressure when reading large CSV streams.
|
Thanks for your pull request. Before I go ahead with this, could you please add a description of this interface to the article.htm file, plus why it's there and how to use it. That way, others can use your work. Additionally, please add unit test(s) that ensure the code still works after your change. |
|
Apologies! In the end I ended up refactoring the CsvContext into CsvReadContext and CsvWriteContext which enabled me to use IEntityFactory (instead of IEntityFactory) with the CsvReadContext and thus made the implementation of IEntityFactory much simpler. |
Added IEntityFactory interface to abstract the process of creating new entity objects when reading a CSV stream.
This change allows the use of object-pooling semantics to reduce memory pressure when reading large CSV streams.