From c85b1c06a9804ad41fbccf8fe5a5689f28eb049e Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 19 Jun 2019 12:22:01 +0800 Subject: lint: add max line length rules (denoland/deno_std#507) Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162 --- testing/diff.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'testing/diff.ts') diff --git a/testing/diff.ts b/testing/diff.ts index 4c96b3b28..dd544ac24 100644 --- a/testing/diff.ts +++ b/testing/diff.ts @@ -72,9 +72,14 @@ export default function diff(A: T[], B: T[]): Array> { const delta = M - N; const size = M + N + 1; const fp = new Array(size).fill({ y: -1 }); - // INFO: This buffer is used to save memory and improve performance. - // The first half is used to save route and last half is used to save diff type. - // This is because, when I kept new uint8array area to save type, performance worsened. + /** + * INFO: + * This buffer is used to save memory and improve performance. + * The first half is used to save route and last half is used to save diff + * type. + * This is because, when I kept new uint8array area to save type,performance + * worsened. + */ const routes = new Uint32Array((M * N + size + 1) * 2); const diffTypesPtrOffset = routes.length / 2; let ptr = 0; -- cgit v1.2.3