Drat הידור ל-JavaScript, לפעמים יצירת קוד מהיר יותר מ-JavaScript בכתב יד. צפה במייסד השותף של Datper, קספר לונד, מסביר כיצד המהדר dart2js מבצע אופטימיזציות מקומיות וגלובליות כדי לפלט קוד JavaScript מהיר ומדויק מבחינה סמנטית. בעזרת רעידת עץ, הסקת מסקנות והקטנה, תוכלו להיעזר ב-Dart כדי לבצע אופטימיזציה של אפליקציית האינטרנט.
Dat למפתחי אתרים מודרניים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],["Dart's dart2js compiler optimizes code for the web by performing local and global optimizations, often surpassing hand-written JavaScript in speed. It uses techniques like tree shaking, removing unused code, type inference to deduce data types, and minification to reduce code size. These optimization methods ensure that the JavaScript code generated from Dart is both semantically accurate and highly performant, ultimately improving web app performance.\n"]]