Skip to content

Instantly share code, notes, and snippets.

View yashsinghcodes's full-sized avatar
🏝️
holiday

Yash Singh yashsinghcodes

🏝️
holiday
View GitHub Profile
/*
* Implmentation of Mark Sweep algo i.e.
* traverse all the object graphs and
* set the mark bit as true once we
* reach the object. Once done find
* all the object whose mark bit is not
* set and we will just delete them from
* memory
*
* stolen from
package main
import (
"crypto/md5"
"encoding/hex"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
import time
animation = "|/-\\//-\|"
idx = 0
for i in animation:
print(animation[idx], end="\r")
idx += 1
time.sleep(0.1)