Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8562309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:42:11+00:00 2026-06-11T16:42:11+00:00

i am currently coding a simple Node.js based revision system: just commit , brunch

  • 0

i am currently coding a simple Node.js based revision system: just commit,brunch and revert nothing fancy, just an exercise to keep skills in shape. I am using sqlite as data-backend with following simple shema:

commitid int
parentid int
branch text
diff blob

Now when I switch branches, I would need to traverse all the commits and apply the diffs on top on each other, this might work fine for 10 commits but with 1000 this will for sure take some time. Other systems like Hg or git switch branches within seconds, and (actual question) I wonder if them keep some kind of cache like every 100 commits, or how else is this handled?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:42:12+00:00Added an answer on June 11, 2026 at 4:42 pm

    Well, one thing for sure is that, in git:

    • you can have several parents
    • the branch name is not part of the commit: the same commit can belong to several branches

    Also, the blob in git is not the diff, but the full file; but as far as I know, hg keeps the diff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using a JavaScript coding style based on Douglas Crockford's Code Conventions for
I am coding a forum system using PHP. I am currently storing a threads
I'm currently coding a simple search script in PHP that requires three variables from
I am currently making this text-based rpg game with a simple GUI. I was
I'm currently coding a simple image manipulator with C# Bitmaps und Graphics. I'm using
I am currently coding a simple Data Access Layer, and I was wondering which
Just a small problem. Currently coding a Java project for a Dell Axim X51
I am currently coding an application then decided to add HoloEverywhere into my application.
I am currently coding setup.py using setuptools. And I want to copy the static
I am currently coding some chat program and now want to play music via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.