Justin--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2KpONX8cs9%3Df%2B4zzQx11yo1e7qV09bNTrT9zwudEfTRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
The Go version was getting about a 25x speedup when using FindSequencesOnDisk (which makes use of all of the other facilities) . The parsing and string building of the paths, frame ranges, and results are faster. I reuse buffers instead of constantly allocating new strings. Also the find operation is concurrent.
An example was that my co-worker was using the python version to drive a graphical file sequence browser. He saw that massively apparent speedup in the interface when he switched to the Go version.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODiTWjOJ3jm2pH5RN-CKSqoAvpQ6kghL4ja752PMiXoQQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1XKJy%2BWS4V5nPr53t8x%3D%3D2eTdULbvuzF_XGihM2Q1-GQ%40mail.gmail.com.
I can work up some benchmarks against the python fileseq.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCsf7uiqwUKWaO6q9QBrZiCxSP-rZLu4DbtxKyuY4qzHA%40mail.gmail.com.
I can work up some benchmarks against the python fileseq.
On Tue, 16 Dec 2014 8:57 PM Marcus Ottosson <konstr...@gmail.com> wrote:
Sounds good, no benchmarks?On 15 December 2014 at 18:35, Justin Israel <justin...@gmail.com> wrote:
The Go version was getting about a 25x speedup when using FindSequencesOnDisk (which makes use of all of the other facilities) . The parsing and string building of the paths, frame ranges, and results are faster. I reuse buffers instead of constantly allocating new strings. Also the find operation is concurrent.
An example was that my co-worker was using the python version to drive a graphical file sequence browser. He saw that massively apparent speedup in the interface when he switched to the Go version.
On Tue, 16 Dec 2014 1:54 AM Marcus Ottosson <konstr...@gmail.com> wrote:
I haven't used the Python library, but what would be the advantage(s) of a Go version compared with the Python version?On 13 December 2014 at 22:31, Justin Israel <justin...@gmail.com> wrote:Hey all,This isn't directly python related, but I thought I would share anyways. If anyone has been using the python library fileseq, which I help maintain, to work with file sequence and frame range patterns, I've built a tool around this functionality (kind of similar to rvls).gofileseq is a port of fileseq, to the Go language. Included in this repo is a utility called seqls, which uses gofileseq to provide a way to list files on the filesystem that are rolled up into sequence formats. So far it can do short and long listings, rolling up the file sizes and showing the latest mod time. I've cross compiled it for win/linux/osxIf you find it useful or have suggestions, please let me know! Also feel free to register issues for it on github if needed. I develop on osx and linux, so I have only briefly tested it on windows..Enjoy!
Justin--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2KpONX8cs9%3Df%2B4zzQx11yo1e7qV09bNTrT9zwudEfTRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODiTWjOJ3jm2pH5RN-CKSqoAvpQ6kghL4ja752PMiXoQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1XKJy%2BWS4V5nPr53t8x%3D%3D2eTdULbvuzF_XGihM2Q1-GQ%40mail.gmail.com.--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1zQ%2BNpmmqR2gWDe0vKEAd%2B%3DB47x2fkFL_y1JEErQOieQ%40mail.gmail.com.
Specifically, i’m thinking about PEP-471. https://www.python.org/dev/peps/pep-0471/
That’s some really interesting stuff! Looks like it’s available for 2.7 too.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1418732783.2884423.203482413.7E971BE9%40webmail.messagingengine.com.
If you are curious, the source for Go's walk is here:
https://golang.org/src/path/filepath/path.go#L389
It isn't quite what the python Pep describes, as it uses an lstat in combination with readdirnames. It also isn't really the fastest of walk implementations as some have pointed out. I'm actually using someone's modified implementation which does the walk concurrently (although it doesn't change the way it stats) :
https://github.com/MichaelTJones/walk/blob/master/walk.go#L140
I was actually thinking about this last night, now that you mention it. Because my walk process in seqls doesn't need the stats for all the files. I could probably get improved results if I just did a recursive Readdirnames, as that is all I am interested in on each path.
Also, in my benchmarks, just to mention, there wasn't much walking going on except for the "all" test. The tests were all doing a readdir for the listing of a given dir, to process the files into sequences.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA784b-Qspr1-VCCAVDESTuB1ZxTep95AfdBAv5V4Phaw%40mail.gmail.com.
Oh woops. You were talking about the listdir impl in python. The equivalent is readdir, and here:
https://golang.org/src/os/file_unix.go#L154
They are reading the names of the location and doing an lstat on each.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2KpONX8cs9%3Df%2B4zzQx11yo1e7qV09bNTrT9zwudEfTRA%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODiTWjOJ3jm2pH5RN-CKSqoAvpQ6kghL4ja752PMiXoQQ%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1XKJy%2BWS4V5nPr53t8x%3D%3D2eTdULbvuzF_XGihM2Q1-GQ%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCsf7uiqwUKWaO6q9QBrZiCxSP-rZLu4DbtxKyuY4qzHA%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1zQ%2BNpmmqR2gWDe0vKEAd%2B%3DB47x2fkFL_y1JEErQOieQ%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1418732783.2884423.203482413.7E971BE9%40webmail.messagingengine.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0maPnOO9OQ%2BDNQrQ3sX8cjUW-91i1sikQTs6D7PRWkEA%40mail.gmail.com.
Seems like if I wanted to do what is proposed in that Pep, I would have to drop down to the platform specific syscalls. Although at least it is already working like a "generator" and streaming the listing on each subsequent call.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1418767983.738136.203723453.3A60AF73%40webmail.messagingengine.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1zQ%2BNpmmqR2gWDe0vKEAd%2B%3DB47x2fkFL_y1JEErQOieQ%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1418732783.2884423.203482413.7E971BE9%40webmail.messagingengine.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA784b-Qspr1-VCCAVDESTuB1ZxTep95AfdBAv5V4Phaw%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0maPnOO9OQ%2BDNQrQ3sX8cjUW-91i1sikQTs6D7PRWkEA%40mail.gmail.com.
--For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.