Skip to content

Instantly share code, notes, and snippets.

View benjeffery's full-sized avatar

Ben Jeffery benjeffery

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tskit 0.3.6</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import time
import numpy as np
import numba
import tskit
@numba.njit(cache=True)
def decode(s):
stack = np.zeros(10000, dtype=np.int32)
stack_p = np.int32(0)
import time
import numpy as np
import numba
import tskit
#@numba.njit(cache=True)
def decode(s):
stack = [0]*10000
stack_p = 0