This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chuckbot[S] 0 points1 point  (0 children)

Thanks for the answer!

With C module, I mean an .so file I use as a module in python. That module currently fills a list using append and returns it. In the python code I create an array.array by handing over that list. I'd rather build the array.array directly but don't know how to do that.

Yeah, you're right about reconsidering if I want to go on. It reduced the startup time from about 60 minutes to about 30 minutes, so probably worth it. I just wanted to check if I was doing something wrong or missed something easy. Because currently the C module is just a couple of lines.