Revert "feat(ops): Fast zero copy string arguments (#16777)" (#17063)

This reverts commit 9b2b8df927.

Closes https://github.com/dsherret/ts-morph/issues/1372
Closes https://github.com/denoland/deno/issues/16979
This commit is contained in:
Bartek Iwańczuk 2022-12-15 16:26:10 +01:00 committed by GitHub
parent 0d4e4af7ac
commit 585ec1218f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 97 additions and 804 deletions

View file

@ -1,3 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
const count = 100000;
const start = Date.now();
for (let i = 0; i < count; i++) console.log("Hello World");
const elapsed = Date.now() - start;
const rate = Math.floor(count / (elapsed / 1000));
console.log(`time ${elapsed} ms rate ${rate}`);