We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Writing Faster Python 3

00:00

Formale Metadaten

Titel
Writing Faster Python 3
Serientitel
Anzahl der Teile
112
Autor
Mitwirkende
Lizenz
CC-Namensnennung - keine kommerzielle Nutzung - Weitergabe unter gleichen Bedingungen 4.0 International:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen und nicht-kommerziellen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen und das Werk bzw. diesen Inhalt auch in veränderter Form nur unter den Bedingungen dieser Lizenz weitergeben.
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
EuroPython 2022 - Writing Faster Python 3 - presented by Sebastian Witowski [The Auditorium on 2022-07-14] Did you know that Python preallocates integers from -5 to 257? Reusing them 1000 times, instead of allocating memory for a bigger integer, can save you a couple milliseconds of code’s execution time. If you want to learn more about this kind of optimizations then, … well, probably this presentation is not for you :) Instead of going into such small details, I will talk about more “sane” ideas for writing faster code. After a brief overview of different levels of optimization and how they work in Python, I will show you simple and fast ways of measuring the execution time of your code and finally, discuss examples of how some code structures could be improved. You will see: * The fastest way of removing duplicates from a list * How much faster your code is when you reuse the built-in functions instead of trying to reinvent the wheel * What is faster than the “for loop” * If the lookup is faster in a list or a set * When it’s better to beg for forgiveness than to ask for permission This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License http://creativecommons.org/licenses/by-nc-sa/4.0/
MenütechnikMIDI <Musikelektronik>InterpretiererMultiplikationsoperatorSprachsyntheseComputeranimationVorlesung/Konferenz
ProgrammiergerätZahlenbereichElektronisches ForumFormale SpracheSoftwareentwicklerCodeWort <Informatik>EntscheidungstheorieComputeranimation
LoopVariableGeradeZeichenketteGlobale OptimierungInterpretiererFormale SpracheArithmetisches MittelTypentheorieMultiplikationsoperatorCodeRahmenproblemComputeranimation
HardwareMultiplikationsoperatorPunktYouTubeSoftwareentwicklerNotebook-ComputerARM <Computerarchitektur>Computeranimation
Meta-TagBitrateBefehlsprozessorHalbleiterspeicherSpeicher <Informatik>Nichtflüchtiger SpeicherNeuroinformatikPunktwolkeFitnessfunktionAlgorithmusHalbleiterspeicherOptimierungServerCloud ComputingQuaderGroßrechnerComputeranimation
MaßerweiterungInterpretiererProgrammschleifeMultiplikationsoperatoreCosFunktionalPhysikalisches SystemVersionsverwaltungMathematikCompilerImplementierungNichtlinearer OperatorDatenstrukturDemoszene <Programmierung>Formale SpracheBildschirmsymbolZahlenbereichProgrammbibliothekRegulator <Mathematik>Ultraviolett-PhotoelektronenspektroskopieCodeJust-in-Time-CompilerComputeranimation
Modul <Datentyp>BimodulRestklasseBitmap-GraphikCachingMechanismus-Design-TheorieZeichenketteAlgorithmusObjekt <Kategorie>MittelwertCompilerGeradeVerschlingungInterpretiererFunktion <Mathematik>Attributierte GrammatikRegulärer GraphCodeDatenverwaltungBefehlsprozessorGlobale OptimierungSoftwaretestGüte der AnpassungPunktSuite <Programmpaket>MereologieVersionsverwaltungTopologieMehrrechnersystemCodeFreewareComputeranimation
DatenflussTotal <Mathematik>UnterraumAlgorithmusDatenstrukturProgrammierspracheMultiplikationsoperatorEinflussgrößeZahlenbereichLaufzeitfehlerMatchingTUNIS <Programm>SkriptspracheFunktionalSummierbarkeitTotal <Mathematik>Leistung <Physik>VariableComputeranimation
Baum <Mathematik>VerschlingungNabel <Mathematik>YouTubeInteraktives FernsehenDifferenteMatchingFunktionalBitHalbleiterspeicherPoisson-KlammerMultiplikationsoperatorGlobale OptimierungVariableSpeicherbereichsnetzwerkARM <Computerarchitektur>Geschlecht <Mathematik>CodePunktArithmetischer AusdruckZahlenbereichLoopMailing-ListeNeuroinformatikSummierbarkeitComputeranimation
ComputerFunktionalGlobale OptimierungGebäude <Mathematik>TypentheorieArithmetischer AusdruckGanze ZahlHalbleiterspeicherZahlenbereichGeradeProgrammbibliothekCompilerDifferenteVersionsverwaltungMultiplikationsoperatorLaufzeitfehlerDatenstrukturDatenkompressionSpeicher <Informatik>Leistung <Physik>BenchmarkArithmetisches MittelProfil <Aerodynamik>Elektronisches ForumLoopMailing-ListeUmwandlungsenthalpieProgrammschleifeMAPJust-in-Time-CompilerNichtlinearer OperatorSummierbarkeit
BenchmarkFunktionalBimodulDatenstrukturJust-in-Time-CompilerLaufzeitfehlerBefehl <Informatik>MomentenproblemCodeMailing-ListeHalbleiterspeicherFormale SpracheGeradeGüte der AnpassungStandardabweichungKartesische KoordinatenArithmetischer AusdruckSchnelltasteMultiplikationsoperatorGlobale OptimierungZahlenbereichDatenkompressionProgrammbibliothekCompilerEndliche ModelltheorieComputeranimation
OptimierungResultanteNichtlinearer OperatorQuellcodeGlobale OptimierungBenchmarkBefehlsprozessorBimodulDifferenteVererbungshierarchieElektronische PublikationCodeAusnahmebehandlungNotebook-ComputerZahlenbereichMathematikFunktionalSpeicherabzugBitGruppenoperationMusterspracheInhalt <Mathematik>VariableByte-CodeMultiplikationsoperatorRadikal <Mathematik>ProgrammierumgebungBefehl <Informatik>MereologieGebäude <Mathematik>CASE <Informatik>p-BlockFehlermeldungLaufzeitfehlerURLSchreiben <Datenverarbeitung>Attributierte GrammatikStabilitätstheorie <Logik>VersionsverwaltungPunktProzess <Informatik>PlastikkarteTeilmengeXMLComputeranimation
Objekt <Kategorie>CASE <Informatik>Wort <Informatik>Attributierte GrammatikFehlermeldungeCosGruppenoperationDifferenteBenchmarkMultiplikationsoperatorKlasse <Mathematik>Computeranimation
DifferenteAttributierte GrammatikCodeMultiplikationsoperatorAuswahlaxiomBenchmarkComputeranimation
E-MailGammafunktionTabelleAusnahmebehandlungHalbleiterspeicherMailing-ListeKonditionszahlZahlenbereichBildschirmmaskeRechter WinkelSoftwaretestEinflussgrößeBefehl <Informatik>ResultanteNichtlinearer OperatorCASE <Informatik>WhiteboardBenchmarkFunktionalLoopElement <Gruppentheorie>ProgrammbibliothekKonstruktor <Informatik>MultiplikationsoperatorDatenkompressionAuswahlaxiomEinsDatenfeldLaufzeitfehlerÄußere Algebra eines ModulsSchnittmengesinc-FunktionMittelwertZweiStandardabweichungProzess <Informatik>BitSchlussregelThumbnailGüte der AnpassungWeg <Topologie>SoftwareentwicklerArithmetischer AusdruckKonstanteKomplex <Algebra>Programmschleifep-BlockTeilbarkeitCodeValiditätInverser LimesIterationBesprechung/InterviewComputeranimation
EindeutigkeitSummierbarkeitMailing-ListeBenchmarkFunktionalDifferenteSchnittmengeMailing-ListeCodeEigentliche AbbildungDatenstrukturWikiMereologieZahlenbereichMultiplikationsoperatorUmsetzung <Informatik>Konstruktor <Informatik>Open SourceData DictionaryEndliche ModelltheorieSoftwaretestPoisson-KlammerFamilie <Mathematik>Befehl <Informatik>CASE <Informatik>BildschirmmaskeKomplex <Algebra>Nichtlinearer OperatorOrdnung <Mathematik>SchlüsselverwaltungÄquivalenzklasseEinfügungsdämpfungAuswahlaxiomTropfenMaßerweiterungNormalvektorBitStichprobenumfangSchaltnetzMathematikSoundverarbeitungLaufzeitfehlerElement <Gruppentheorie>PunktResultanteVersionsverwaltungMittelwertPRINCE2Arithmetisches MittelSystemaufrufTermSystem FWeb logTabelleMultifunktionByte-CodeTupelDisassemblerInterpretiererNabel <Mathematik>SkriptspracheLoopBimodulRadikal <Mathematik>ProgrammschleifeComputeranimation
Element <Gruppentheorie>DigitalfilterCodeTypentheorieInterpretiererMAPCodegenerierungStabilitätstheorie <Logik>CompilerWort <Informatik>Ganze ZahlBinärcodeNichtlinearer OperatorRahmenproblemOverhead <Kommunikationstechnik>SpeicherverwaltungHalbleiterspeicherAusnahmebehandlungSpeicherabzugQuick-SortRechter WinkelJust-in-Time-CompilerCodeBenchmarkFunktionalVersionsverwaltungEinsTermArithmetische FolgeResultanteData MiningCoxeter-GruppeSoftwareentwicklerMultiplikationsoperatorMehrschichten-PerzeptronTorusPunktZahlenbereichProdukt <Mathematik>Computeranimation
BenchmarkStichprobeGeradeAxiomNormierter RaumElement <Gruppentheorie>LoopBenchmarkResultanteDokumentenserverWeb logMultiplikationsoperatorÄußere Algebra eines ModulsCoxeter-GruppeMailing-ListeVersionsverwaltungDämpfungGlobale OptimierungWechselsprungQuellcodeComputeranimation
Globale OptimierungCodeMailing-ListeGlobale OptimierungGebäude <Mathematik>FunktionalVerschlingungDämpfungSchreib-Lese-KopfProgrammschleifeMathematikDatenstrukturQuellcodeLoopStellenringComputeranimation
ZahlenbereichSchnittmengeMomentenproblemMultiplikationsoperatorDigitaltechnikKonditionszahlBitVorlesung/KonferenzComputeranimation
KonditionszahlOffene MengeElektronische PublikationPunktCodeAttributierte GrammatikComputeranimationVorlesung/Konferenz
CodeAttributierte GrammatikInternetworkingRPCVorlesung/KonferenzComputeranimation
RechenschieberBitMultiplikationsoperatorDifferenteLoopSoftwareentwicklerFunktionalSystemaufrufSpezifisches VolumenDemoszene <Programmierung>Formation <Mathematik>Besprechung/Interview
FunktionalObjekt <Kategorie>LoopGeradeDatenkompressionMultiplikationsoperatorBitrateVorlesung/KonferenzBesprechung/Interview
ATMCASE <Informatik>Ultraviolett-PhotoelektronenspektroskopieUmwandlungsenthalpieJust-in-Time-CompilerProgrammbibliothekZahlenbereichPhysikalischer EffektPi <Zahl>Proxy ServerVorlesung/Konferenz
Just-in-Time-CompilerVererbungshierarchiePhysikalischer EffektPunktCASE <Informatik>EnergiedichteGlobale OptimierungGüte der AnpassungZeichenketteSoftwaretestVorlesung/Konferenz
ZeichenkettePhysikalischer EffektTemplateUnrundheitVorlesung/KonferenzXML
Transkript: Englisch(automatisch erzeugt)