Performance comparison of IEnumerable and raising event for each item in source?
问题 I want to read big binary file containing millions of records and I want to get some reports for the records. I use BinaryReader to read (which I think has the best performance in readers) and convert read bytes to data model. Due to the count of records, passing model to the report layer is another issue: I prefer to use IEnumerable to have LINQ functionality and features when developing the reports. Here is sample data class: Public Class MyData Public A1 As UInt64 Public A2 As UInt64