Skip to content

Commit

Permalink
Use WASM for Square-1 scrambles.
Browse files Browse the repository at this point in the history
This currently takes 15 seconds of initialization due to lack of optimizations.
  • Loading branch information
lgarron committed Jan 10, 2025
1 parent 12b738e commit c87813c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/cubing/search/inside/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { solveMegaminx } from "./solve/puzzles/megaminx";
import { solvePyraminx } from "./solve/puzzles/pyraminx";
import { randomRediCubeScramble } from "./solve/puzzles/redi_cube";
import { solveSkewb } from "./solve/puzzles/skewb";
import { getRandomSquare1Scramble } from "./solve/puzzles/sq1";
import {
wasmRandomScrambleForEvent,
wasmTwsearch,
Expand Down Expand Up @@ -113,7 +112,7 @@ async function randomScrambleForEvent(
case "minx":
case "pyram":
case "skewb":
// case "sq1":
case "sq1":
// case "444bf":
case "555bf":
// case "333mbf":
Expand Down Expand Up @@ -144,14 +143,6 @@ async function randomScrambleForEvent(
"random444OrientedScramble",
random444OrientedScramble,
);
case "sq1":
return measurePerf(
"getRandomSquare1Scramble",
getRandomSquare1Scramble,
{
isPrefetch: options?.isPrefetch,
},
);
case "fto":
return measurePerf("randomFTOScramble", randomFTOScramble, {
isPrefetch: options?.isPrefetch,
Expand Down

0 comments on commit c87813c

Please sign in to comment.