Skip to content

imlobster/ini.rip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inirip ini.rip

I really dont know why an ini file will be 1000gb or more, although it can parse it very fast so enjoy it.

usage

How to use ini.rip:

  1. make sure your file is ascii only
  2. download INIRIP folder and put it into your sln folder
  3. link INIRIP class library to your project
  4. extract your .ini file into string variable in your script
  5. import using INIRIP; into your script
  6. use Coder.TryDecode(yourstring, out Dictionary<ReadOnlyMemory<char>, Dictionary<ReadOnlyMemory<char>, ReadOnlyMemory<char>>> youroutvalues)
  7. then you get your deserialized .ini
  8. the structure looks like this:
    • sections
      • keys and values
      • keys and values
    • sections
      • keys and values
      • keys and values
  9. to save your values in ini you need to build your Dictionary<ReadOnlyMemory<char>, Dictionary<ReadOnlyMemory<char>, ReadOnlyMemory<char>>> or use your edited output from decoding
  10. put your full path to file and your dictionary in Coder.TryEncode("C:\Users\Desktop\MyFile.ini", MyValues)
  11. pray it all to work

performance on 10k symbols

Average Time Median Time Min Time Max Time
44.0 µs 44.0 µs 26.7 µs 66.9 µs
Average Symbols/sec Average MB/sec
250.83 million 478.4 MB/s

Featuring: Water

Releases

No releases published

Packages

No packages published

Languages