GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Typescriptify the sources by e-cloud · Pull Request #5 · webpack/webpack-sources

Conversation

@e-cloud

@e-cloud e-cloud commented Dec 9, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

convert the source to typescript to ensure and improve code quality.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
e-cloud added 4 commits December 9, 2016 09:28
@e-cloud
chore: update editor config and gitignore
1ef2962
@e-cloud
feat: convert to typescript
c308931
@e-cloud
update: improve typings of the source
f96bba8
@e-cloud
feat: add definition
5a0ce8e
@e-cloud
e-cloud force-pushed the master branch 2 times, most recently from f791ac6 to d970a2c Compare December 9, 2016 07:42
@e-cloud
fix: improve typings
255cad1
@e-cloud
e-cloud force-pushed the master branch from d970a2c to 255cad1 Compare December 9, 2016 08:03
@codecov-io

codecov-io commented Dec 9, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Current coverage is 58.94% (diff: 100%)

Merging #5 into master will not change coverage

@@             master         #5   diff @@
==========================================
  Files            11         11          
  Lines           397        397          
  Methods          75         75          
  Messages          0          0          
  Branches         59         59          
==========================================
  Hits            234        234          
  Misses          163        163          
  Partials          0          0          

Powered by Codecov. Last update 56c7833...255cad1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@e-cloud e-cloud closed this Jan 10, 2017
alexander-akait pushed a commit that referenced this pull request May 14, 2026
@claude
feat: add parsedMap option, post-minifier benchmark, getCachedData test
adbb4f8
Addresses the polish items from the second review of PR #221:

- **#2 post-minifier asset shape benchmark.** New Scenario 3 in
  `benchmark/memory/clear-cache.mjs` constructs the shape webpack
  assets actually present at the PROCESS_ASSETS_STAGE_DEV_TOOLING
  hook: a `CachedSource` wrapping a `SourceMapSource` whose
  `_cachedSource` (bundle string) and `_cachedMaps[{}]` (composed
  map) are populated. 50 chunks: 8.5 MB baseline → 0 MB after
  `clearCache({ maps: true, source: false, recursive: false })`.

- **#3 optional `parsedMap: true` flag** on `ClearCacheOptions`.
  When set, `SourceMapSource.clearCache` drops the parsed object
  forms of `_sourceMapAsObject` and `_innerSourceMapAsObject`
  (heaviest cached representation), but only when a serialized form
  (buffer or string) is also held so data stays recoverable.
  Defaults to `false` to preserve the cheap toString re-hydration
  path described in the comment.

- **#4 `getCachedData()` after `clearCache()` interaction test.**
  Pins the observable shape: buffer + source = undefined, maps
  empty, hash + size preserved when their flags default to false.
  Round-trips through `new CachedSource(source, data)` to confirm
  cleared cached data is still a valid input.

- **#5 "release hint" framing** in the `Source.prototype.clearCache`
  JSDoc. Opens with "clearCache is a memory hint: it never affects
  correctness or output, only how expensive the next read is."

- **#6 dedup correctness test** already lives at
  `test/clearCache.js:251` ("a shared subtree is walked once when
  a `visited` WeakSet is passed") with a negative control at :269.

Tests grow to 25 (was 22). Full suite 89,870/89,870 pass, lint
clean. Benchmark numbers unchanged on Scenarios 1 + 2: 44.7%
heap reduction on unique tasks, 3.6× dedup speedup, 228×
`recursive: false` speedup.

https://claude.ai/code/session_01LLtSGKaynui1P1wQsfVnXx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@e-cloud @codecov-io
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.