I do now deserialization as

BinaryFormatter bin = new BinaryFormatter(); var test = (List<abc>)bin.Deserialize(stream); 

but it is very long. Please tell me how to make faster?

  • @ prog432 you naively believe that in C # there is a big magic button with the inscription "Turbo", which you have to press, how will everything start to run much faster? I will disappoint you - there is no such button. Your weak link is the amount of data. Cut it - DreamChild
  • @ prog432 How long is this? minute, hour, day? Let's calculate, the average disk gives up to 100 MBytes per second. So, I only have one gigabyte to disk, which will be recorded for at least 10 seconds. And it can be accelerated only if we put SSD for example. - KoVadim
  • a long time is more than an hour, data is read quickly, the question of their long de - serialization - prog432
  • 2
    @ prog432, and maybe you trivially do not have enough RAM (including under all auxiliary for deserialization of the data structure) and paging begins? - avp
  • one
    There is a suggestion to use protobuf or even make your own personal serializer. And, my personal opinion, switch to more adequate languages ​​/ algorithms or install at least 8-16 GB of memory if you want to work with gigabyte arrays of data. - KoVadim

0