Skip to content

optimization of encodedBitmap_Bytes_withnumpy#99

Open
fookatchu wants to merge 1 commit into
Photonsters:masterfrom
fookatchu:faster-rle-encoding
Open

optimization of encodedBitmap_Bytes_withnumpy#99
fookatchu wants to merge 1 commit into
Photonsters:masterfrom
fookatchu:faster-rle-encoding

Conversation

@fookatchu

Copy link
Copy Markdown

I recently wrote a library to read/write Photon files for my SL1-to-Photon-Converter and largely used PhotonFile.py as a reference. Unfortunately the code is not very compatible any more, so I thought I would at least give something back, which is the optimized code for the rle encoding. In my tests the new function is roughly 10 times faster than the orignal numpy version. I did some tests and the resulting binarys are identitical. If you need any further changes, please let me know and I will try my best to implement them.

p.s.
This is my first pull request on github, so please excuse any mistakes.

@NardJ

NardJ commented Apr 27, 2019 via email

Copy link
Copy Markdown
Collaborator

@X3msnake

Copy link
Copy Markdown
Member

@NardJ you forgot this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants