By Ira Herman
Use this workflow when working with teams to take advantage of Pull Requests and keep the master branch clean.
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| 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 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| from urllib2 import urlopen | |
| from subprocess import Popen, PIPE | |
| from BeautifulSoup import * | |
| page = urlopen('http://pyvideo.org/category/33/pycon-us-2013') | |
| soup = BeautifulSoup(page) | |
| video_url_list = [] | |
| count = 0 |
| { | |
| "title": "System Resources", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "collectd_type:\"load\"", | |
| "alias": "Load", | |
| "color": "#70DBED", | |
| "id": 0, |
| import asyncio | |
| loop = asyncio.get_event_loop() | |
| async def hello(): | |
| await asyncio.sleep(3) | |
| print('Hello!') | |
| if __name__ == '__main__': | |
| loop.run_until_complete(hello()) | |