Facebook Story Downloader Credit Cards For Young Adults
Goldilocks and the three bears goldilocks in the woods of the forest
Credit Cards For Young Adults There was an error while loading. How We Have To Read. Jewelry Ideas To Make And Sell
- Notifications
You must be signed in to change notification settings - Fork Books We Have Read Lettering
Credit Cards For Young Adults
goldilocks and the three bears goldilocks in the woods of the forest
New issue
Persuasive Instagram Post Have a question about this project? Sign up for a free CloneAGC account to open an issue and contact its maintainers and the community. Instagram Post In Website
Facebook Story Downloader By clicking “Sign up for CloneAGC”, you agree to our Latest Social Media Post and Post-Launch Product Review And Enhancement. We’ll occasionally send you account related emails. Free PowerPoint Countdown Timer Template
Best Time To Post On Instagram In 2025 Already on CloneAGC? Business Blog Articles Template Free to your account Software Product Road Map Examples
Best Time To Post On Instagram In 2025 Credit Cards For Young Adults
Project Management Charter Template
Bad Credit Credit Cards Guaranteed Approval There was an error while loading. Too Long Didn't Read Meme. IT Service Company Social Media Posts
Credit Cards For Young Adults
goldilocks and the three bears goldilocks in the woods of the forest
Changes from all commits
78b6356 04db555 33d616c 312dcf9 4a5c9f1 85ea858 7270bde 0fc1cb3 da788bf 74a549b 40b141e 3d2b9bf ded18f2 2315da3 a7c6ba3 b812a18 File filter
Project Management Charter Template Credit Cards For Young Adults
Conversations
Bad Credit Cards Guaranteed Approval For Young Adults
Blog Article Pictures For Books Store
Best-Selling Products Flyer There was an error while loading. Blog Post Profile. Examples To Display Product
Jump to
Blog Article Pictures For Books Store Credit Cards Young Adults
Website Article Layout
Read Article V And Questions There was an error while loading. Instagram Phone Post Colaj Post. Teaser Podcast Launch Social Media Post
Diff view
Diff view
Best-Selling Products Flyer Credit Cards For Young Adults
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| #!/usr/bin/env python3 | ||
| """Compare legacy per-pattern rglob discovery with the single-pass walker. | ||
| | ||
| This is an opt-in developer benchmark, not a timing assertion in the test | ||
| suite. It creates a synthetic monorepo so filesystem or CI-agent changes do not | ||
| make regular tests flaky. | ||
| """ | ||
| | ||
| import argparse | ||
| import tempfile | ||
| import time | ||
| from pathlib import Path | ||
| from types import SimpleNamespace | ||
| from unittest.mock import MagicMock | ||
| | ||
| from socketsecurity.core import Core | ||
| from socketsecurity.core.socket_config import SocketConfig | ||
| from socketsecurity.core.utils import socket_globs | ||
| | ||
| | ||
| def seed_tree(root: Path, directories: int, files_per_directory: int) -> None: | ||
| for directory_index in range(directories): | ||
| directory = root / "packages" / f"package-{directory_index:05d}" | ||
| directory.mkdir(parents=True) | ||
| (directory / "package.json").write_text("{}\n", encoding="utf-8") | ||
| for file_index in range(files_per_directory): | ||
| (directory / f"source-{file_index:03d}.txt").write_text( | ||
| "not a manifest\n", | ||
| encoding="utf-8", | ||
| ) | ||
| | ||
| # These trees model the expensive directories that the new walker prunes | ||
| # before descent rather than visiting once for every manifest pattern. | ||
| for excluded in (".git/objects", "node_modules/example", ".venv/site-packages"): | ||
| directory = root / excluded | ||
| directory.mkdir(parents=True) | ||
| for index in range(files_per_directory * 10): | ||
| (directory / f"object-{index:05d}").write_text("x", encoding="utf-8") | ||
| | ||
| | ||
| def legacy_discover(root: Path) -> set[str]: | ||
| results = set() | ||
| excluded_dirs = SocketConfig(api_key="benchmark").excluded_dirs | ||
| for ecosystem_patterns in socket_globs.values(): | ||
| for details in ecosystem_patterns.values(): | ||
| for pattern in Core.expand_brace_pattern(details["pattern"]): | ||
| insensitive = Core.to_case_insensitive_regex(pattern) | ||
| for candidate in root.rglob(insensitive): | ||
| if candidate.is_file() and not Core.is_excluded( | ||
| str(candidate), | ||
| excluded_dirs, | ||
| ): | ||
| results.add(candidate.as_posix()) | ||
| return results | ||
| | ||
| | ||
| def new_core() -> Core: | ||
| core = Core.__new__(Core) | ||
| core.config = SocketConfig(api_key="benchmark") | ||
| core.cli_config = SimpleNamespace(exclude_paths=None) | ||
| core.sdk = MagicMock() | ||
| core._supported_patterns = socket_globs | ||
| return core | ||
| | ||
| | ||
| def timed(function, root: Path) -> tuple[set[str], float]: | ||
| start = time.perf_counter() | ||
| results = set(function(root)) | ||
| return results, time.perf_counter() - start | ||
| | ||
| | ||
| def main() -> None: | ||
| parser = argparse.ArgumentParser() | ||
| parser.add_argument("--directories", type=int, default=500) | ||
| parser.add_argument("--files-per-directory", type=int, default=20) | ||
| args = parser.parse_args() | ||
| | ||
| with tempfile.TemporaryDirectory(prefix="socket-manifest-benchmark-") as temp: | ||
| root = Path(temp) | ||
| seed_tree(root, args.directories, args.files_per_directory) | ||
| legacy_results, legacy_seconds = timed(legacy_discover, root) | ||
| new_results, new_seconds = timed( | ||
| lambda path: new_core().find_files(str(path)), | ||
| root, | ||
| ) | ||
| | ||
| if legacy_results != new_results: | ||
| raise SystemExit( | ||
| "Manifest result mismatch: " | ||
| f"legacy={len(legacy_results)}, single_pass={len(new_results)}" | ||
| ) | ||
| | ||
| speedup = legacy_seconds / new_seconds if new_seconds else float("inf") | ||
| print(f"Manifests: {len(new_results)}") | ||
| print(f"Legacy per-pattern rglob: {legacy_seconds:.3f}s") | ||
| print(f"Single-pass walk: {new_seconds:.3f}s") | ||
| print(f"Speedup: {speedup:.1f}x") | ||
| | ||
| | ||
| if __name__ == "__main__": | ||
| main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| __author__ = 'socket.dev' | ||
| __version__ = '2.6.5' | ||
| __version__ = '2.6.6' | ||
| USER_AGENT = f'SocketPythonCLI/{__version__}' |
Read Article V And Questions Credit Cards For Young Adults
Simbunew Post In Insta
Visa Gift Card Designs There was an error while loading. How To Teach Your Child To Read. New Product Launch Announcement Template
Website Article Layout Credit Cards For Young Adults
LinkedIn Verification
Best Person Digital Mobile Game Cards Instagram Post Ideas There was an error while loading. Books We Have Read Lettering. Social Media Engagement Strategy Template