newRPL: [UPDATED April 27-2017] Firmware for testing available for download
|
10-04-2016, 12:16 PM
(This post was last modified: 10-04-2016 12:53 PM by Bruno.)
Post: #401
|
|||
|
|||
RE: newRPL: [UPDATED September-17-16] Firmware for testing available for download
Thank you Claudio, now I can try and learn funny stuffs
This is very impressive all the work you've done !!! Congrats. Let's talk about the code from now, and here is my first question (Don't worry, I'll try to not flood you !) : Why did you use a slow O(n) switch/case structure in the library handlers instead of a fast O(1) structure like an array of function pointers ? (remember the linktable from our old and so loved RPL) An dirty example to be sure you understand me : Code:
I do not find any 'bad' reason for that : - the enum will generate appropriate index for an array - the system opcodes could be handled outside the array - ?? please, excuse my poor english |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)