-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reads data for a very long time #3
Comments
Yes, the performance is noticeably bad even for 1000 record * 80 column files. The upcoming 6.0 release should see some small improvements, but I will take a serious look at performance for 6.1. Are you using the latest release build or the commit I mentioned in #1 (comment)? |
Some notes for myself: rooms.tpsRecords: 13323
svcntbld.tpsRecords: 25262
|
I have to change your code for use it in .Net 4.5.2. Maybe you could make a Nuget package for .Net 4.5.2 as well? Could you make a constructor in which the encoding would be set? |
I could (and should) expose a parameter in the TpsParser constructor, but there needs to be a way to load the default ISO-8859-1 encoding from within the library. From my testing, this is only possible using versions of System.Text.Encoding.CodePages that target .NET Standard 1.3 and later, which .NETFx 4.5.2 does not implement. |
Slight correction, the CodePages package is required by the key decrypter, which uses Windows-1258 for passwords. (Vietnamese? I wonder if that was something being used for testing in the original Java library.) Considering the decrypter was implemented as-is during my port from the Java version and is not used by the parser at all, I think it is safe to remove this entirely. In the far future, I think it would be nice to include it again in case someone needs to recover old TPS files. (I hear the newer TPS format switched to AES as the older algorithm only used 64-byte keys.) In that case, we can drop the package and you can use it on .NETFx 4.5.2. |
I tried to read a file with a size of 725 kb. Reads data for a very long time. See screenshot http://joxi.ru/1A5MKRyuGK3vWA
A 1462 kb file was read for 16 minutes.
I attach file for test
files_for_test.zip
You can write me to skype or email
The text was updated successfully, but these errors were encountered: