|
Meta tags:
description=Add @vectorcall to the AC-generated IncrementalNewlineDecoder.__init__. There is no change of exception text for bad arguments.
Benchmark:
+----------------------------------------+--------+----------------------+
Benchmark main patch
+========================================+========+======================+
IncrementalNewlineDecoder(None, False) 145 ns 116 ns: 1.25x faster
+----------------------------------------+--------+----------------------+
IncrementalNewlineDecoder(None, True) 142 ns 116 ns: 1.22x faster
+----------------------------------------+--------+----------------------+
Geometric mean (ref) 1.24x faster
+----------------------------------------+--------+----------------------+
Details
import pyperf
SETUP =
from io import IncrementalNewlineDecoder
CASES = [
( IncrementalNewlineDecoder(None, False) , IncrementalNewlineDecoder(None, False) ),
( IncrementalNewlineDecoder(None, True) , IncrementalNewlineDecoder(None, True) )
]
runner = pyperf.Runner()
for name, stmt in CASES:
runner.timeit(name, stmt=stmt, setup=SETUP)
Issue: gh-162350;
Headings (most frequently used words):
uh, oh, for, navigation, gh, 162350, add, ac, vectorcall, io, incrementalnewlinedecoder, 162508, footer, diff, view, menu, repository, there, are, no, files, selected, viewing, filter, by, extension,
Text of the page (most frequently used words):
github (17), file (16), and (14), this (12), for (12), applied (11), code (9), all (9), reload (9), the (8), you (7), suggestion (7), cannot (7), suggestions (7), while (7), loading (7), sign (7), line (6), add (6), changes (6), clinic (6), _io (6), show (6), textio (6), files (6), that (5), security (5), please (5), there (5), expand (5), incrementalnewlinedecoder (5), vectorcall (5), diff (5), modules (5), commits (5), your (5), can (4), 2026 (4), pull (4), comments (4), was (4), error (4), page (4), retry (4), open (4), learn (4), about (4), view (4), tanloong (4), support (4), copilot (4), not (3), community (3), navigation (3), request (3), from (3), batch (3), commit (3), generated (3), input (3), nldecoder_object (3), hidden (3), characters (3), unicode (3), more (3), load (3), hide (3), whitespace (3), filter (3), nov (3), 162508 (3), 162350 (3), merged (3), python (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), merge (2), change (2), single (2), one (2), viewing (2), toggle (2), oops (2), something (2), went (2), wrong (2), down (2), null (2), static (2), errors (2), end (2), output (2), fbd04d443e764ec2 (2), pyobject (2), translate (2), int (2), decoder (2), 228 (2), number (2), bidirectional (2), what (2), review (2), desktop (2), delete (2), edit (2), additions (2), are (2), selected (2), apply (2), split (2), unified (2), failed (2), jump (2), nbsp (2), extension (2), main (2), into (2), incrementalnewlinedecoder_vectorcall (2), select (2), tree (2), issue (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, inc, right, now, check, back, later, queued, multi, pending, reviews, has, been, marked, resolved, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, _io_incrementalnewlinedecoder_vectorcall, py_tp_vectorcall, _io_incrementalnewlinedecoder___init__, py_tp_init, incrementalnewlinedecoder_clear, py_tp_clear, incrementalnewlinedecoder_traverse, py_tp_traverse, 3524, 3525, pytype_slot, nldecoder_slots, 7fd0efad15bc0b69, ed547aa257616b0e, self, _io_incrementalnewlinedecoder___init___impl, 247, 248, bool, object, __init__, nldecoder_object_cast, define, struct, original, contains, text, may, interpreted, compiled, differently, than, appears, below, editor, reveals, deletion, some, rendered, default, how, customized, appear, deletions, conversations, clear, filters, viewed, types, branch, 5d4be88, e42ea50, hold, shift, click, range, changed, checks, conversation, cmaloney, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|