December 2011
2 posts
4 tags
Filter useless wireless traffic
!(wlan.fc.type_subtype == 0x1d) && !(wlan.sa == $MY_ADDRESS) && !(wlan.fc.type_subtype == 0x08)
0x1d = beacon
0x08 = ack
by maik
3 tags
stringToBytes JavaScript Performance
Searching for a simple function to convert javascript strings to byte arrays, I stumbled over this stackoverflow answer.
While it’s implementation is correct, it has a significant performance problem. For large strings, the internal byte array is recreated too often. It’s somewhat similar to using the += operator on strings in java instead of using a StringBuilder. A faster function...