Pigweed Tokenizer.pdf

编号:144801 PDF 14页 422.34KB 下载积分:VIP专享
下载报告请您先登录!

Pigweed Tokenizer.pdf

1、#EMBEDDEDOSSUMMITPigweed TokenizerAl Semjonovs,GoogleEmail:Discord:asemjonovs#8232Github:asemjonovsAgendaWhat is Pigweeds tokenizer?Zephyrs Dictionary Logging ComparisonHow does tokenizing help us?How to integrate Pigweeds tokenization into your projectFuture improvements with tokenizationWhat is Pi

2、gweeds tokenizer?Not related to string parsing Replaces whole string literal with a 32-bit hash token.Why?Reduce binary size by removing string literals from binariesReduce I/O traffic,RAM,and flash usage.Reduce CPU usage by replacing snprintf calls with simple tokenization code.Zephyr Dictionary Lo

3、ggingPigweed TokenizerString mappingMaps to string addressMaps to 32-bit hash generated by string literalProbability of CollisionsStrings have a 1:1 mapping to address.Guaranteed no collisions.Database FormatJSON dictionaryCSV,Binary,Directory basedDatabase PortabilityAddresses are not guaranteed be

4、tween builds.Only works with build it was compiled against.The token hash will be the same between builds and boards using same source.Able to merge tokens from multiple boards and versions to a single database.Token DatabaseStores mapping of hash tokens to strings they representGenerated from ELF f

5、ileDatabase Format TypesCSVBinaryDirectory BasedUpdate an existing databaseCaptures removal date of unused tokensIntegrates with CMake and GN buildsDetokenizingLanguage supportPythonC/C+TypescriptWeb Console System Consolepigweed$python3-m pw_system.console-device/dev/ttyUSB0-token-databases databas

6、e.csvTokenized Logging ExampleBefore:Plain text loggingLocationLogging ContentNum bytesSource containsLOG(Battery state:%s;battery voltage:%d mV,state,voltage);Binary containsBattery state:%s;battery voltage:%d mV41Device TransmitsBattery state:CHARGING;battery voltage:3989 mV49W

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(Pigweed Tokenizer.pdf)为本站 (2200) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠