Denis Demidov

Results 316 comments of Denis Demidov

I like the 'mount sysfs remotely and use it with native classes' path. This way, the device classes do not have to be changed at all (we already support custom...

Just brainstorming: with an overloaded `__index__` method we could do something like `motor.speed['RPM']` or `motor.speed['DPS']`. Another (but very similar) option is providing a method taking the units as a string:...

Would it be possible to keep track of the instantiated functions/views inside PGView/PGFunction constructors? Something like ```py _pg_functions = [] class PGFunction: def __init__(self, *args, **kwargs): ... _pg_functions.append(self) ``` Then...

The LRU cache was added in https://github.com/ev3dev/ev3dev-lang/pull/25. The benchmarks there suggest the cache does help with the peformance. One other thing to try would be to cache `FILE` handles instead...

The performance gains look interesting. All file operations in ev3dev.cpp are implemented in terms of `std::ifstreasm`/`std::ofstream` objects. I guess you could try to implement a thin wrapper class for the...

Did you try to compare the performance of POSIX API with that of ``? I mean, in your code there is a lot of calls to `sprintf()` to temporary buffers...

> if someone do it, I can test ;) @cho934, #56 uses `` instead of `` for I/O, so it should be easy for you to compare the performance. It...

The code in #56 is loosely based on your code (thanks for that, by the way!), and replaces `` functionality which is known to be slow with the one from...

I think this may be because I forgot to do `fseek(0)` in the writer class. Does d4dae3e help?

Another try: bb8a873 disables io buffering for the opened files. Sorry for not being able to test this myself, I currently have no access to my ev3.