You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how to do network I/O in C++, but I do know it's possible to construct and interpret these messages, and I know that my callback structure will work.
At the very least, this can be built as a python C extension. Or more accurately, it could be entirely based in C++ and rely on python for I/O (I believe that's possible).
A definite thing to happen is that the python version will include C++ files at this point. So every import will be of the form:
C++ implementation (not yet pushed) now has everything except compression methods. Has flags, protocol, pathfinding_message. This has, however, revealed some optimizations to make. Namely, as follows:
This saves CPU time in return for a mild hit to memory. In the case of a hash, this would likely save memory in the long run, as each hash calculation consumes more memory than the string result.
I don't know how to do network I/O in C++, but I do know it's possible to construct and interpret these messages, and I know that my callback structure will work.
At the very least, this can be built as a python C extension. Or more accurately, it could be entirely based in C++ and rely on python for I/O (I believe that's possible).
A definite thing to happen is that the python version will include C++ files at this point. So every import will be of the form:
And setup.py would have a flag for including C extensions. Roughly:
Most of that is untested, since I'm just now learning how to use C++ this way, but I believe that will work.
The text was updated successfully, but these errors were encountered: