This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latency Comparison Numbers (extended for WPF/C#) | |
------------------------------------------------ | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var constantType = { | |
'Class': 7, | |
'Fieldref': 9, | |
'Methodref': 10, | |
'InterfaceMethodref': 11, | |
'String': 8, | |
'Integer': 3, | |
'Float': 4, | |
'Long': 5, | |
'Double': 6, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Identifies which source contains the values that should be applied to all other sources | |
# | |
# Valid values: | |
# gtk3 GTK3 configuration / dconf | |
# Supports cursor theme and size | |
# gtk2 GTK2 configuration (uses gconftool-2) | |
# Supports cursor theme and size | |
# xdefaults Reads values from ~/.Xdefaults |