# What Is Context Switching and How Does It Hurt Productivity? | LinearB Blog

> Studies indicate developers wait on average 4 days for a pull request review. That’s a lot of idle time. But it’s not like you’re waiting around for someone else to review your work. Right? Well most of us aren’t. We create a pull request and then move on to the next thing. But the cognitive [&hellip;]

_This is a markdown rendering of a live HTML page on linearb.io, generated for AI/LLM consumption — it is not a markdown-only site. To get the full HTML page instead, request this URL with an explicit `Accept: text/html` header (no wildcard, no markdown preference)._

[Blog](https://linearb.io/blog)

/

What Is Context Switching and How Does It Hurt Productivity?

# What Is Context Switching and How Does It Hurt Productivity?

![Photo of Briana Johnson](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Briana_Johnson_19a1d53fce?_a=BAVMn6ID0)

By [Briana Johnson](https://linearb.io/blog/what-is-context-switching-and-how-does-it-hurt-productivity#briana-johnson)

|

February 8, 2022

![Context_Switching_e1644353906156_b5dfddac55](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Context_Switching_e1644353906156_b5dfddac55?_a=BAVMn6ID0)

Studies indicate developers wait on [average 4 days for a pull request review](https://linearb.io/blog/the-pull-request-paradox-merge-faster-by-promoting-your-pr/). That’s a lot of idle time.

But it’s not like you’re waiting around for someone else to review your work. Right?

![pull request idle time and context switching Reddit comment](https://assets.linearb.io/uploads/YouTube-Aint-Gonna-Watch-Itself.png)

Well most of us aren’t. We create a pull request and then move on to the next thing.

But the cognitive load needed to revisit code increases with each hour that passes after we create a new pull request. And it turns out that idle time and context switching, particularly in the pull request process, are developer productivity killers. 

## Table of Contents

* [What is Context Switching?](#what-is-context-switching)
* [Why Is Context Switching Time Consuming?](#why-is-context-switching-time-consuming)
* [A Context Switching Example](#a-context-switching-example)
* [How to Reduce Context Switching](#how-to-reduce-context-switching)
* [Understand How to Counter Context Switching](#understand-how-to-counter-context-switching)

## What Is Context Switching?

‍Context switching is the process of shifting between multiple tasks unrelated to each other. The bigger the difference between the first task you are working on and the next task you switch to, the larger the context switch between the two tasks is.

Managing and improving context switches, especially around pull requests, can do more to increase your team’s productivity than almost anything else.

> The essential problem with context switching is that it ruins focus. Without focus, it is impossible to enter a flow state.

## Why Is Context Switching Time Consuming?

The essential problem with context switching is that it ruins focus. Without focus, it is impossible to enter a flow state.

But we can’t just avoid context switches altogether. They’re inevitable.

Who hasn’t finally gotten into a flow state only to realize you’re five minutes late for a meeting? You attend the meeting, begrudgingly, and then spend another 30 minutes after the meeting trying to get back into your flow state. That’s a waste of 30 minutes.

Lack of focus leads to a lack of flow. And that leads to a lack of enjoyment, a lack of engagement, and a lack of [productivity](https://linearb.io/blog/9-engineering-productivity-tools-to-improve-your-team/).

> A typical code review requires the developer to switch context endless times and none of the tools were designed for the review process.

## A Context Switching Example

Let’s look back at the study mentioned previously.

For the PR reviewer, they often have to switch between a series of environments to help understand the code and its scope.And then, they will switch between tools to communicate the review, especially if your team members are operating asynchronously.

A typical code review requires the developer to switch context endless times and [none of the tools were designed for the review process](https://linearb.io/blog/code-review-best-practices/).

What ends up happening is that your team spends a big chunk of their review time context switching. After a while, they’ll just shrug and comment “LGTM.”

![pull request looks good to me meme](https://assets.linearb.io/uploads/Looks-Good-to-Me.jpeg)

This harms the review quality and specific tasks worked on alongside it.

For the developer issuing the 4-day old pull request, can you imagine what happens to their short-term memory with that much extraneous cognitive load?

If I need to answer questions or make changes four days later, it’s hard to get back into the flow state I was in. I end up having to re-read the whole thing before I can start coding again.

And this context switching hurts the code quality. When a problem occurs on code I wrote days ago, it’s more difficult to debug. 

So can you eliminate context switching for your team? No. But you can reduce it.

## How to Reduce Context Switching

By now you’re an expert at increasing productivity. You know how to stay focused, reduce distractions, eliminate meetings, and guide your teams in code review best practices, right? Well, maybe most days.

But as more teams operate asynchronously, it can be harder for team leads or engineering managers to pinpoint where context switching might be impacting productivity.

Do you know your team’s average pull request review time and how that impacts total [cycle time](https://linearb.io/blog/cycle-time/) and [sprint planning accuracy](https://linearb.io/sprint-planning/)? Better still, are you notified when a branch is merged without review or only a LGTM comment?

Connect your Git, project, release, and incident management tools to LinearB to see how your team’s review time stacks up to engineering metrics standards. Get automated notifications when high-risk work like PRs merged without review happen. Book a demo today!

[![Let's do PR for pull requests](https://assets.linearb.io/uploads/WorkerB_AutomatedImprovement-1024x497.png)](https://linearb.io/get-started/)

There’s also an element of personal responsibility for developers to manage their own context switching.

Thankfully, your team can use tools to help them focus on a single task at a time and increase their productivity. In addition to [tools that you can use to reduce context switching during the code review process](https://linearb.io/blog/4-code-review-tools-that-wont-disrupt-your-flow/), have them try the following interventions:

**Eliminate Push Notifications**

Does every Slack/MS Teams notification need your immediate attention? Probably not. Limit notifications to mentions. Better yet, mute channels during working hours that only need to be checked periodically.

**Chunk Your Work**

Devs need several hours of focused, productive time. This [blog post from Stack Overflow](https://stackoverflow.blog/2018/09/10/developer-flow-state-and-its-impact-on-productivity/) says devs are lucky if they get one 2-hour session of focus time each day. Cluster meetings together. Block off chunks of time on your calendar to focus on similar tasks.

**Complete Tasks Before Natural Breaks in the Day**

Ever avoid starting a new task when you have 15 minutes to spare before your next meeting or before the end of the day? Try to be conscious of tasks that you can complete in those short windows of time, and save them for natural breaks in the day.

Additionally, don’t start a complex task until you have the estimated amount of time to focus on it.

**Use Tools to Give Context to Context Switches**

Imagine you could estimate how long a peer review would take you? Or that you knew it was connected to a high-priority feature or imminent release?

Our [WorkerB for Pull Requests Chrome Extension](https://chrome.google.com/webstore/detail/workerb-for-pull-requests/cagholjopklnloocclidppnkmpnkghja) is a free tool devs can use to promote PRs and give their teammates necessary context. It includes:

* Estimated review time
* Number of files changed, commits, and lines of code
* Related ticket, release, and other context
* A gif or meme to get their attention

Our WorkerB magic links can decrease the time that devs spend waiting and help them push code to production faster.

[](https://chrome.google.com/webstore/detail/workerb-for-pull-requests/cagholjopklnloocclidppnkmpnkghja)

**Want to help us fix the pull request paradox?** [Download the WorkerB for Pull Requests Chrome Extension!](https://chrome.google.com/webstore/detail/workerb-for-pull-requests/cagholjopklnloocclidppnkmpnkghja)

## Understand How to Counter Context Switching

So many of us are battling the work/life balance working remotely. And many teams struggle with productivity and just try to push themselves harder and harder.

It can be far more effective to take a step back and look at the root cause of productivity struggles, like context switching. But remember you don’t have to handle context switching on your own.

[![Improve PR Process Teams that improve their PR process especially PR size with LinearB see: Less code churn, Higher code quality, Less idle time & toil, and Reduced context switching](https://assets.linearb.io/uploads/improve-pr-process-recipe-1024x575.png)](https://linearb.io/pr-process/)

We know that streamlining your PR process impacts your productivity and efficiency. Learn more about [our five-step recipe for improvement](https://linearb.io/pr-process/).

And join thousands of other dev teams revolutionizing how pull requests are managed.

## Improve developer productivity with LinearB

Find us on

[](https://www.linkedin.com/company/linearb)
[](https://devinterrupted.substack.com/)

## Your next read

[![Cover image for Code generation is faster than ever, but shipping value isn't](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Blog_AI_code_review_bottleneck_2400x1256_d73333ea46?_a=BAVMn6ID0)](https://linearb.io/blog/code-generation-faster-shipping-isnt)

DevEx

[Code generation is faster than ever, but shipping value isn't](https://linearb.io/blog/code-generation-faster-shipping-isnt)

Your team writes more code than ever, but less reaches production. AI moved the bottleneck to code review. Here's how to measure it and unblock your pipeline.&n...

[![Cover image for What to look for in an engineering productivity platform](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Blog_Developer_productivity_platform_2400x1256_0d47bff68e?_a=BAVMn6ID0)](https://linearb.io/blog/what-to-look-for-engineering-productivity-platform)

DevEx

[What to look for in an engineering productivity platform](https://linearb.io/blog/what-to-look-for-engineering-productivity-platform)

AI made dashboards trivial, but the data foundation underneath still matters. How to evaluate an engineering productivity platform across four key outcomes.

[![Cover image for Why OpenAI Codex builds the agent first, not the product](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Blog_Redefining_agentic_autonomy_2400x1256_98ff8e15fc?_a=BAVMn6ID0)](https://linearb.io/blog/openai-codex-thibault-sottiaux-agentic-autonomy)

DevEx

[Why OpenAI Codex builds the agent first, not the product](https://linearb.io/blog/openai-codex-thibault-sottiaux-agentic-autonomy)

OpenAI’s Thibault Sottiaux reveals how the Codex team ruthlessly simplifies agent design by removing manual scaffolding, solving context compaction at the...

## Structured data

_Machine-readable metadata (JSON-LD) embedded in the page for search/AI context — not content rendered on the page itself._

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "LinearB",
  "url": "https://linearb.io",
  "logo": "https://assets.linearb.io/image/upload/v1715628027/logo-mark-lg.svg",
  "description": "LinearB is the engineering productivity platform that helps engineering leaders prove AI is improving throughput without sacrificing delivery confidence, flow efficiency, or developer experience.",
  "sameAs": [
    "https://www.linkedin.com/company/linearb"
  ],
  "award": [
    {
      "@type": "Award",
      "name": "LinearB is a Leader in the 2026 Gartner® Magic Quadrant™ for Developer Productivity Insight Platforms",
      "dateAwarded": "2026",
      "awardedBy": {
        "@type": "Organization",
        "name": "Gartner®"
      }
    },
    {
      "@type": "Award",
      "name": "Great Place to Work Certification",
      "dateAwarded": "2025-2027",
      "awardedBy": {
        "@type": "Organization",
        "name": "Great Place to Work"
      }
    },
    {
      "@type": "Award",
      "name": "America's Best Startup Employers 2025",
      "dateAwarded": "2025",
      "awardedBy": {
        "@type": "Organization",
        "name": "Forbes Magazine"
      }
    }
  ],
  "hasCertification": [
    {
      "@type": "Certification",
      "name": "SOC 1 Type 2"
    },
    {
      "@type": "Certification",
      "name": "SOC 2 Type 2"
    },
    {
      "@type": "Certification",
      "name": "GDPR Compliance certification"
    },
    {
      "@type": "Certification",
      "name": "ISO 27001"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "What Is Context Switching and How Does It Hurt Productivity?",
  "url": "https://linearb.io/blog/what-is-context-switching-and-how-does-it-hurt-productivity",
  "author": {
    "@type": "Person",
    "name": "Briana Johnson"
  },
  "datePublished": "2022-02-08T14:58:57.000Z",
  "dateModified": "2022-02-08T14:58:57.000Z",
  "image": "https://assets.linearb.io/image/upload/v1720000000/Context_Switching_e1644353906156_b5dfddac55.jpeg",
  "publisher": {
    "@type": "Organization",
    "name": "LinearB",
    "logo": "https://assets.linearb.io/image/upload/v1777485755/linearb-logo-2026.png"
  },
  "description": "Studies indicate developers wait on average 4 days for a pull request review. That’s a lot of idle time. But it’s not like you’re waiting around for someone else to review your work. Right? Well most of us aren’t. We create a pull request and then move on to the next thing. But the cognitive […]\n"
}
```

## More on linearb.io

### Top navigation

- [Book a Demo](https://linearb.io/book-a-demo)
- [AI Code Reviews — Catch security risks, bugs, and spec mismatches](https://linearb.io/platform/ai-code-reviews)
- [AI & Productivity Insights — See how AI tools affect cycle time and delivery speed](https://linearb.io/platform/ai-developer-productivity-insights)
- [Measure AI Impact — Track AI adoption and tie it to delivery outcomes](https://linearb.io/use-case/measure-ai-impact)
- [MCP Server — Chat with your data to spot patterns and boost output](https://linearb.io/platform/mcp-server)
- [Resource Allocation — Cost initiatives and shape your investment strategy](https://linearb.io/platform/resource-allocation)
- [Cost Capitalization — Capitalize engineering costs with audit-ready reports](https://linearb.io/platform/cost-capitalization)
- [Dev Team Management — Set targets and tie throughput to business outcomes](https://linearb.io/platform/goals-and-reporting)
- [DevOps Workflow Automation — Policy-based PR routing, approvals, and tests](https://linearb.io/platform/ai-workflow-governance)
- [AI Powered Support — Unify AI and human code delivery in one clear view](https://linearb.io/use-case/ai-powered-support)
- [Optimization — Surface friction with feedback and MCP insights](https://linearb.io/platform/developer-experience)
- [Reporting — Spot what's working and what needs attention](https://linearb.io/use-case/measuring-developer-experience)
- [Surveys — Turn developer feedback into actionable signals](https://linearb.io/platform/developer-surveys)
- [Platform overview](https://linearb.io/platform/overview)
- [Register now](https://linearb.io/event/engineering-productivity-gap)
- [Customers](https://linearb.io/customers)
- [Pricing](https://linearb.io/pricing)
- [Why choose LinearB — Explore your data. Measure performance. Act to improve it.](https://linearb.io/why-linearb)
- [APEX framework — The operating model for AI-era engineering teams](https://linearb.io/resources/apex-framework)
- [Anti-FAQ — The questions other vendors won't answer](https://linearb.io/why-linearb/anti-faq)
- [Security — Enterprise-grade compliance and zero code access](https://linearb.io/security)
- [Build vs. buy — The hidden cost of building it yourself](https://linearb.io/resources/build-vs-buy)
- [Dev Interrupted Podcast — Conversations with engineering leaders](https://linearb.io/dev-interrupted/podcasts)
- [Reports & Guides — Deep dives on productivity and delivery](https://linearb.io/resources)
- [Webinars — Expert sessions on productivity and AI](https://linearb.io/resources?category=workshops)
- [Metrics Benchmarks — See how your engineering org stacks up](https://linearb.io/resources/software-engineering-benchmarks-report)
- [Blog — Product updates and practical insights](https://linearb.io/blog)
- [Help Center — Documentation, setup, and support](https://linearb.helpdocs.io)
- [API Docs](https://docs.linearb.io/api-overview)
- [Status](https://www.linearbstatus.com/)
- [Integrations](https://linearb.io/integrations)
- [LinearB is a Leader in the 2026 Gartner® Magic Quadrant™ for Developer Productivity Insight Platforms](https://linearb.io/resources/gartner-magic-quadrant-dpi-platforms-2026)
- [Sign in](https://app.linearb.io/login)
- [Enterprise](https://linearb.io/solutions/enterprise)
- [Contact](https://linearb.io/contact-us)
- [About us](https://linearb.io/about-us)
- [Careers](https://linearb.io/careers)
- [Service agreement](https://linearb.io/services-agreement)
- [Privacy policy](https://linearb.io/privacy-policy)
- [DPA](https://linearb.io/data-processing-agreement)
- [Security FAQ](https://linearb.io/security-faq)
- [Substack](https://devinterrupted.substack.com/)

### Footer

_Additional links from the site footer, not repeated from the top navigation above._

- [GitHub](https://github.com/linear-b)
- [LinkedIn](https://www.linkedin.com/company/linearb)
- [Twitter](https://twitter.com/LinearB_Inc)