February, 2019

article thumbnail

Faster remainders when the divisor is a constant: beating compilers and libdivide

Daniel Lemire

Not all instructions on modern processors cost the same. Additions and subtractions are cheaper than multiplications which are themselves cheaper than divisions. For this reason, compilers frequently replace division instructions by multiplications. Roughly speaking, it works in this manner. Suppose that you want to divide a variable n by a constant d.

C++ 279
article thumbnail

Extending Vector with eBPF to inspect host and container performance

The Netflix TechBlog

by Jason Koch , with Martin Spier , Brendan Gregg , Ed Hunter Improving the tools available to our engineers to help them diagnose, triage, and work through software performance challenges in the cloud is a key goal for the cloud performance engineering team at Netflix. Today we are excited to announce latency heatmaps and improved container support for our on-host monitoring solution?

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Intro to Redis Cluster Sharding – Advantages, Limitations, Deploying & Client Connections

High Scalability

Redis Cluster is the native sharding implementation available within Redis that allows you to automatically distribute your data across multiple nodes without having to rely on external tools and utilities. At ScaleGrid, we recently added support for Redis Clusters on our platform through our fully managed Redis hosting plans. In this post, we’re going to introduce you to the advanced Redis Cluster sharding opportunities, discuss its advantages and limitations, when you should deploy, and

article thumbnail

Installing WordPress 5 on ZEIT Now with MySQL Hosting

Scalegrid

Want to deploy WordPress 5.0 on the Now platform by ZEIT ? Our friends over at ZEIT’s Now global serverless deployment platform whipped up a great tutorial for WordPress5-on-Now using cheap MySQL hosting instances from ScaleGrid. With such strong interest in this installation, we decided to write up the steps to configure your MySQL database on the ScaleGrid side to get you up and running ever faster with WordPress on Now.

article thumbnail

Developing modern sites with good performance

Jos

Poor performance leads to exclusion. When we create heavy sites we limit what users can access our content. Those with more powerful devices and better network will get sites loaded faster. Those with older devices and slower network will need to wait more. Why performance is important Study after study shows how slowing sites down results in less engagement, less time on the site and a general decrease in key business metrics.

article thumbnail

JavaScript Loading Priorities in Chrome

Addy Osmani

How browsers schedule and execute scripts can impact the performance of web pages. While techniques like , (and others) influence script loading, knowing how browsers interpret them can also be helpful. Thanks to Kouhei Ueno , we now have an up to date summary of script scheduling in Chrome.

article thumbnail

More fun with fast remainders when the divisor is a constant

Daniel Lemire

In software, compilers can often optimize away integer divisions, and replace them with cheaper instructions, especially when the divisor is a constant. I recently wrote about some work on faster remainders when the divisor is a constant. I reported that it can be fruitful to compute the remainder directly, instead of first computing the quotient (as compilers are doing when the divisor is a constant).

More Trending

article thumbnail

Design Of A Modern Cache—Part Deux

High Scalability

This is a guest post by Benjamin Manes , who did engineery things for Google and is now doing engineery things as CTO of Vector. The previous article described the caching algorithms used by Caffeine , in particular the eviction and concurrency models. Since then we’ve made improvements to the eviction algorithm and explored a new approach towards expiration.

Cache 200
article thumbnail

Intro to Redis Cluster Sharding – Advantages, Limitations, Deploying & Client Connections

Scalegrid

Redis Cluster is the native sharding implementation available within Redis that allows you to automatically distribute your data across multiple nodes without having to rely on external tools and utilities. At ScaleGrid, we recently added support for Redis Clusters on our platform through our fully managed Redis hosting plans. In this post, we’re going to introduce you to the advanced Redis Cluster sharding opportunities, discuss its advantages and limitations, when you should deploy, and

Java 138
article thumbnail

Highlights from the O'Reilly Software Architecture Conference in New York 2019

O'Reilly Software

Watch highlights from expert talks covering cloud-native programming, software architecture career advice, and more. People from across the software architecture world are coming together in New York for the O'Reilly Software Architecture Conference. Below you'll find links to highlights from the event. Architecting IT transformation. Gregor Hohpe explains how software architects can use what they know about technical systems to help refactor organizations.

article thumbnail

Exploring Differences Between HTTP Preload vs HTTP/2 Push

KeyCDN

HTTP Preload and HTTP/2’s feature “Server Push” are both methods that can be used to improve the loading efficiency of your web application. Although there are similarities between Push and Preload, they are two distinct features and each serve their own purpose. In this article, we’ll go over the similarities and differences between HTTP Preload vs HTTP/2 Push and discuss when it makes sense to use each.

Speed 99
article thumbnail

How Does Page Load Time Affect Your Site Revenue?

MachMetrics

Why do fast sites make more money? Because of nobody like a slow website. 14% of your audience will start shopping at another site if your page loads are slow, and 23% will simply stop the shopping experience or walk away from the computer. That has a huge affect on your business bottom line. Getting your websites, images, and videos to load quickly is an absolute necessity for inbound marketing success.

Speed 93
article thumbnail

Managing Uber’s Data Workflows at Scale

Uber Engineering

At Uber’s scale, thousands of microservices serve millions of rides and deliveries a day, generating more than a hundred petabytes of raw data. Internally, engineering and data teams across the company leverage this data to improve the Uber experience. … The post Managing Uber’s Data Workflows at Scale appeared first on Uber Engineering Blog.

article thumbnail

Stuff The Internet Says On Scalability For February 8th, 2019

High Scalability

Wake up! It's HighScalability time: Change is always changing. What will the next 5 years look like? Do you like this sort of Stuff? I'd greatly appreciate your support on Patreon. Know anyone who needs cloud? I wrote Explain the Cloud Like I'm 10 just for them. It has 35 mostly 5 star reviews. They'll learn a lot and love you forever. 16,000 : Chrome bugs found with ClusterFuzz; $2,000,000 : for Apple iOS remote jailbreak; $1 million : think twice when profiting from a bug; 0 : clicks to over t

Internet 188
article thumbnail

Silence Is Violence

Baron Schwartz

My Twitter profile currently includes the phrase “silence is violence.” People ask me about this occasionally: what does it mean? I don’t know where I picked up this phrase, and maybe it has a different meaning for me than for others, but what I mean by it is that if I’m a bystander who witnesses something I disagree with, I’m actively supporting the behavior to which I object.

article thumbnail

Charset and Collation Settings Impact on MySQL Performance

Percona

Following my post MySQL 8 is not always faster than MySQL 5.7, this time I decided to test very simple read-only CPU intensive workloads, when all data fits memory. In this workload there is NO IO operations, only memory and CPU operations. My Testing Setup. Environment specification. Release | Ubuntu 18.04 LTS (bionic). Kernel | 4.15.0-20-generic. Processors | physical = 2, cores = 28, virtual = 56, hyperthreading = yes.

article thumbnail

iOS Performance Tricks To Make Your App Feel More Performant

Smashing Magazine

iOS Performance Tricks To Make Your App Feel More Performant. iOS Performance Tricks To Make Your App Feel More Performant. Axel Kee. 2019-02-05T13:00:00+01:00. 2019-04-29T18:34:58+00:00. Although modern iOS hardware is powerful enough to handle many intensive and complex tasks, the device could still feel unresponsive if you are not careful about how your app performs.

article thumbnail

Small moves, smartly made

Edge Perspectives

Small moves, smartly made, can set big things in motion – that’s the sub-title of my last book, The Power of Pull. It’s been a key theme of my work for decades, but it’s coming back to bite me. I find that a lot of people have grabbed on to this message to justify incremental actions with limited funding, while holding out the expectation that they will potentially lead to big results.

article thumbnail

Signed, Sealed, and Delivered

J. Paul Reed

A mouthful of a title… but then, I suppose most thesis titles are. It’s been a long time coming, but I’m happy to finally report, it’s official: my thesis for Lund’s Human Factors and Systems Safety program has been published ! Astute followers may be wondering “Hey, wait a second, I thought you graduated last summer? Twitter has the receipts !” Well, I did march with my classmates last summer.

article thumbnail

Give Meaning to 100 Billion Events a Day — The Shift to Redshift

High Scalability

In part one , we described our Analytics data ingestion pipeline, with BigQuery sitting as our data warehouse. However, having our analytics events in BigQuery is not enough. Most importantly, data needs to be served to our end-users. TL;DR?—?Teads Analytics big picture In this article, we will detail: Why we chose Redshift to store our data marts, How it fits into our serving layer, Key learnings and optimization tips to make the most out of it, Orchestration workflows, How our data visua

Analytics 174
article thumbnail

Parallel programming in Python: multiprocessing (part 1)

PDC

Parallel programming solves big numerical problems by dividing them into smaller sub-tasks, and hence reduces the overall computational time on multi-processor and/or multi-core machines. Parallel programming is well supported in traditional programming languages like C and FORTRAN, which are suitable for “heavy-duty” computational tasks.

article thumbnail

Developing A GraphQL API With Node.js And MongoDB

The Polyglot Developer

While REST APIs are amongst the most popular when it comes to client consumption, they are not the only way to consume data and they aren’t always the best way. For example, having to deal with many endpoints or endpoints that return massive amounts of data that you don’t need are common. This is where GraphQL comes in. With GraphQL you can query your API in the same sense that you would query a database.

article thumbnail

JavaScript dominates browser CPU

Speed Curve

Loading scripts asynchronously is critical for getting pages to render more quickly. We care about rendering because that's what users see; if rendering is slow users have a negative experience. But it's not just about what users see - how the site feels is also important. That's why we focus so much on CPU time. If the CPU is blocked, then browsers are delayed responding to user interactions like scrolling and clicking on links.

Mobile 70
article thumbnail

Roaming free: The power of reading beyond your field

O'Reilly Software

Glenn Vanderburg talks about the importance of letting your attention roam, and he shares examples of how insights from other fields have inspired software practitioners. Continue reading Roaming free: The power of reading beyond your field.

article thumbnail

The Difference Between UAT and Beta Testing

Testlodge

It’s not uncommon to see a “Beta Release” of a product. But what does “beta” mean? And what about UAT… what’s that? We’ve talked a lot about different types of testing and we’ve also discussed the difference between alpha and beta testing in the past. There are a lot of them. In this article, we’re going to look at UAT and Beta Testing.

Testing 62
article thumbnail

Stuff The Internet Says On Scalability For February 1st, 2019

High Scalability

Wake up! It's HighScalability time: Memory module for the Apollo Guidance Computer (Mike Stewart). The AGC weighed 70 pounds and had 2048 words of RAM in erasable core memory and 36,864 words of ROM in core rope memory. It flew to the moon. Do you like this sort of Stuff? Please go to Patreon and do what comes natural. Need cloud? Stand under Explain the Cloud Like I'm 10 (35 nearly 5 star reviews). $10.9B : Apple's Q1 services revenue; 5 million : homes on Airbnb; 2.5-5% : base64 gzipped files

Internet 146
article thumbnail

Why software development needs to shift up (not left or right)

TechBeacon Testing

Over the last decade, QA has moved from the periphery to become a priority for every business that produces software and apps. This focus has sparked much debate about whether development and testing should shift left or right. But both of these approaches fail to take into account how a customer uses the product. It's time for a new shift.

article thumbnail

Use A YubiKey For PGP Signing, Encryption, And Authentication

The Polyglot Developer

As you know, based on a few of the tutorials that I’ve published recently, I have a YubiKey that I’ve been learning how to take full advantage of. In previous tutorials I demonstrated how to implement U2F in your web application , but most YubiKey devices do so much more than just U2F authentication. For example, the YubiKey NEO and YubiKey 5 have support for U2F, FIDO2, OpenPGP, OTP, and a bunch of other crazy technologies.

article thumbnail

Site Speed Metrics Explained – TTFB, Speed Index, Interactive, Load, Complete, and more

MachMetrics

It’s one of the most frequently asked questions I see asked, “I’ve tested my site speed, so now what do these metrics mean?” Don’t worry if you’re confused – there’s a lot to understand. Here we’ll explain what each of the common web performance metrics mean, and how can you use that data to optimize your site and make it faster.

Speed 56
article thumbnail

The future of cloud-native programming

O'Reilly Software

Tamar Eilam offers an overview of cloud-native programming and outlines a path toward the unification of the cloud programming model. Continue reading The future of cloud-native programming.

article thumbnail

Disallow large imports from JavaScript projects

Addy Osmani

Are there known large JavaScript dependencies your team wish they could disallow from a project? Good news! ESLint supports disallowing specific imports from projects using the no-restricted-imports rule.

51
article thumbnail

Stuff The Internet Says On Scalability For February 15th, 2019

High Scalability

Wake up! It's HighScalability time: Opportunity crossed over the rainbow bridge after 15 years of loyal service. " Our beloved Opportunity remains silent.". Do you like this sort of Stuff? I'd greatly appreciate your support on Patreon. Know anyone who needs cloud? I wrote Explain the Cloud Like I'm 10 just for them. It has 39 mostly 5 star reviews.

Internet 143
article thumbnail

How to make your test automation run in parallel

TechBeacon Testing

At some point in your test automation, you will run into a common problem: Too many automated UI tests take too long to execute.

Testing 63
article thumbnail

Developing A RESTful API With Golang And A MongoDB NoSQL Database

The Polyglot Developer

If you’ve been following along, you’re probably familiar with my love of Node.js and the Go programming language. Over the past few weeks I’ve been writing a lot about API development with MongoDB and Node.js, but did you know that MongoDB also has an official SDK for Golang ? As of now the SDK is in beta, but at least it exists and is progressing.

article thumbnail

Webhosting Compared: Testing The Uptime Of 32 Hosts In 2018

Smashing Magazine

Webhosting Compared: Testing The Uptime Of 32 Hosts In 2018. Webhosting Compared: Testing The Uptime Of 32 Hosts In 2018. John Stevens. 2019-02-12T12:00:22+01:00. 2019-04-29T18:34:58+00:00. (This is a sponsored article.) Many surveys have indicated that uptime is number one factor when choosing a web host and although most, if not all, web hosting services “promise” 99.99% uptime, it’s not the case with our case-study.

Testing 50
article thumbnail

Design after Agile: How to succeed by trying less

O'Reilly Software

Stuart Halloway explains how to augment agility with principles for designing systems. Continue reading Design after Agile: How to succeed by trying less.

Design 69
article thumbnail

The Cost Of Client-side Rehydration

Addy Osmani

Learn about approaches to reduce the cost of rehydration in server rendered experiences

Servers 71