Forwarded from Syra's Techbinder
https://gameprogrammingpatterns.com/data-locality.html
An interesting article which aims to "accelerate memory access by arranging data to take advantage of CPU caching."
Tags: #programming #Cpp #gamedev #optimization
An interesting article which aims to "accelerate memory access by arranging data to take advantage of CPU caching."
Tags: #programming #Cpp #gamedev #optimization
The Little Book of Python Anti-Patterns
https://docs.quantifiedcode.com/python-anti-patterns/index.html
https://docs.quantifiedcode.com/python-anti-patterns/index.html
"A great disturbance in the force..."
A fantastical tale of how the author built the recently shut down IMDB forums.
https://www.beatworm.co.uk/blog/internet/imdb-boards-no-more
A fantastical tale of how the author built the recently shut down IMDB forums.
https://www.beatworm.co.uk/blog/internet/imdb-boards-no-more
Rust language server hits nightlies
This project allows IDEs and editors to integrate with the rust compiler directly and provides code completion etc.
https://www.jonathanturner.org/2017/04/rls-now-in-nightly.md.html
This project allows IDEs and editors to integrate with the rust compiler directly and provides code completion etc.
https://www.jonathanturner.org/2017/04/rls-now-in-nightly.md.html
Forwarded from Syra's Techbinder
https://stackoverflow.com/questions/11227809/why-is-it-faster-to-process-a-sorted-array-than-an-unsorted-array
Tags: #programming #architecture
Tags: #programming #architecture
Stack Overflow
Why is processing a sorted array faster than processing an unsorted array?
In this C++ code, sorting the data (before the timed region) makes the primary loop ~6x faster:
#include <algorithm>
#include <ctime>
#include <iostream>
int main()
{
// Gene...
#include <algorithm>
#include <ctime>
#include <iostream>
int main()
{
// Gene...
Syra's Techbinder
https://stackoverflow.com/questions/11227809/why-is-it-faster-to-process-a-sorted-array-than-an-unsorted-array Tags: #programming #architecture
@techbinder posted this famous Stackoverflow question that explains in detail what branch prediction is and how you can radically speed up code by knowing about it.
Write Fast Apps Using Async Python 3.6 and Redis
https://eng.paxos.com/write-fast-apps-using-async-python-3.6-and-redis
https://eng.paxos.com/write-fast-apps-using-async-python-3.6-and-redis
GCC 7 released with:
- experimental support for the full C++17 spec
- improved diagnostics
- improved optimisation
- OpenMP support for NVidia PTX
- support for RISC-V
https://gcc.gnu.org/gcc-7/changes.html
- experimental support for the full C++17 spec
- improved diagnostics
- improved optimisation
- OpenMP support for NVidia PTX
- support for RISC-V
https://gcc.gnu.org/gcc-7/changes.html
H.264 is magic: a technical walkthrough of a remarkable technology.
https://sidbala.com/h-264-is-magic/
https://sidbala.com/h-264-is-magic/
Sid Bala
H.264 is magic: a technical walkthrough of a remarkable technology.
A high level walkthrough of the basics of video compression techniques used in MPEG, AVC/H.264, codecs.
Why does Google prepend while(1); to their JSON responses? - Stack Overflow
https://stackoverflow.com/questions/2669690/why-does-google-prepend-while1-to-their-json-responses
https://stackoverflow.com/questions/2669690/why-does-google-prepend-while1-to-their-json-responses
Stack Overflow
Why does Google prepend while(1); to their JSON responses?
Why does Google prepend while(1); to their (private) JSON responses?
For example, here's a response while turning a calendar on and off in Google Calendar:
while (1);
[
['u', [
['smsSentFla...
For example, here's a response while turning a calendar on and off in Google Calendar:
while (1);
[
['u', [
['smsSentFla...