




已阅读5页,还剩34页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
TECHNOLOGYDIVISION HowGoldmanSachsworkswithJava 3 18 2020 1 TECHNOLOGYDIVISION 2 Agenda EngineeringatGoldmanSachsUsingJavaandOpenJDKinGoldmanSachsEclipseCollections What sEclipseCollections BenefitofEclipseCollectionscomparedtoStreamsandJCF LearningEclipseCollectionsbysolvingproblems 123 3 18 2020 2 TECHNOLOGYDIVISION 3 EngineeringatGoldmanSachs 3 18 2020 3 TECHNOLOGYDIVISION 4 GoldmanSachs TheGoldmanSachsGroup Inc isaleadingglobalinvestmentbanking securitiesandinvestmentmanagementfirmthatprovidesawiderangeoffinancialservicestoasubstantialanddiversifiedclientbasethatincludescorporations financialinstitutions governmentsandindividuals Foundedin1869 thefirmisheadquarteredinNewYorkandmaintainsofficesinallmajorfinancialcentersaroundtheworld GoldmanSachsTechnologyDivisionWebuildsolutionstosomeofthemostcomplexproblems creatingtransformationaltechnologiesanddevelopingsystemsthatdrivebusinessandfinancialmarketsworldwide 3 18 2020 4 TECHNOLOGYDIVISION 5 EngineeringatGoldmanSachs Leadinglatestopentechnology globalinitiatives OpenComputeProject Aprojecttobuildeffectivecomputationinfrastructureatthelowestpossiblecost resultingwithoptimizeddatacenteroperation OpenContainerInitiative Aprojecttodefineformatandruntimeofcontainertechnology Morethan30organizationsincludingDockerareparticipatingintheproject JavaCommunityProcess ExecutiveCommittee JCPExecutiveCommitteeisresponsibleofimportantspecificationprocessforJavaplatform GoldmanSachswaselectedtothecommitteein2011forthefirsttimeandcontinuetobesincethen 3 18 2020 5 TECHNOLOGYDIVISION 6 EngineeringatGoldmanSachs 3 18 2020 6 TECHNOLOGYDIVISION 7 UsingJavainGoldmanSachs 3 18 2020 7 TECHNOLOGYDIVISION 8 199820002000 2004 BeganinternalJavaevaluation Javabecameoneofthestrategicplatforms ContinuouslyworkingcloselywithSun OracletoimproveJava ReadyforLambdasinGSCollectionsFrameworkpredecessor ElectedintoJCPExecutiveCommittee2012 GSCollectionsFrameworkOpen sourced SignedOCA2013 StartedcontributingtoOpenJDK 2015 MigratedGSCollectionstoEclipseFoundation HistoryofGoldmanSachsandJava 3 18 2020 8 TECHNOLOGYDIVISION 9 JavainGS JCPExecutiveCommitteemember PartoftheExpertGroupsforthefollowingJSRs JSR107 JCACHE JavaTemporaryCachingAPI JSR335 LambdaExpressionsfortheJavaProgrammingLanguage JSR351 JavaIdentityAPI Over3000JavaDevelopers Maintain 130millionlinesofJavacode Onaverage 125 000Javaprocessesrunningatanygivenhoureveryday 3 18 2020 9 TECHNOLOGYDIVISION 10 CuttingEdgeJavainGSWedopushtheboundaryofJavatechnology o Verylargeheap Someapplicationsuseasmuchas190Gheap IntegeroverflowissueswithGrowableArraycausedissuewithMarkStackoJVMstressedunderhighvolumeconditionsorunusualusagepattern CodecachecapacityOpenSourceinternallydevelopedframeworkoEclipseCollections CollectionframeworkthatisricherandmorefluentthanStreamAPI 3 18 2020 10 TECHNOLOGYDIVISION 11 Sourceaccessisimportant Timelyresolutionforproductionissues Identifypotentialareaforimprovement Goodforsecurity Transparency Howisthecodebeingdeveloped Bugdatabase ContributepatchesforbugsandenhancementsthatbenefitusandthewiderJavacommunity WhyWeUseOpenJDK 3 18 2020 11 TECHNOLOGYDIVISION 12 TypicalUsageofOpenJDK Troubleshooting Resolveproductionissues Usefulduringdevelopment Researchnewfeatures IdentifyoptimizationopportunitiesintheJDK Howtheycanbeappliedandbeneficialtoapplications 3 18 2020 12 TECHNOLOGYDIVISION 13 TroubleshootingHavingaccesstoJDKsourcecodeisimportant TimelyDiagnostics Crashdumpanalysis Debugbuilds Identifyworkaroundsandpotentialfixes Createpatchedbuildsfordeveloperstoverifyfixes IncludingpatchesnotyetavailabletoGAbuilds 3 18 2020 13 TECHNOLOGYDIVISION 14 Research Understandingnewfeaturesinhotspot Howdoesitwork Doesitbenefitourapplications Ifitdoes howcouldapplicationsexploitit Identifyperformancebottleneck Potentialworkaroundandfeaturestoimproveapplicationperformance 3 18 2020 14 15 TECHNOLOGYDIVISIONImproveArray sort logic DualPivotQuicksort forprimitivecollectionsHowChangedthealgorithmto reducenumberof run a run ishowlongyougothroughthearraywithitbeinginorder StopsortinginthecaseofdescendingnumbersTestcase Additionalfunctionalunittests PerformancebenchmarkusingJMHPatchcontribution Discussedpatchat 3 18 2020 15 TECHNOLOGYDIVISION 16 EclipseCollectionsOpenforcontributions collections blob master CONTRIBUTING md 3 18 2020 16 TECHNOLOGYDIVISION 17 WhatisEclipseCollections GSCollections OpensourceJavacollectionsframeworkdevelopedinGoldmanSachsInspiredbySmalltalkCollectionsFrameworkIndevelopmentsince2004HostedonGitHubw Apache2 0LicenseinJanuary2012 EclipseCollections7 0 Project EclipseFoundationhttps www eclipse org collections FeaturesetisthesameasGSCollections7 0PublicreleasedonJan20th Packagesrenamedcom gs org eclipse 3 18 2020 17 TECHNOLOGYDIVISION 18 JavaOne2015 EclipseCollectionsbyExample 3 18 2020 18 TECHNOLOGYDIVISION 19 EclipseCollections Richsetoffeatures Java8StreamAPI FunctionalAPIsLazyonlySingleuseSerial ParallelPrimitivestreams 3types ExtensibleCollectors EclipseCollections7 0 3 18 2020 19 TECHNOLOGYDIVISION 20 ReadableInterface MutableInterface ImmutableInterface Bag Set List Stack Map etc MutableBag MutableList etc ImmutableBag ImmutableList etc DesignConceptRichIterable 3 18 2020 20 TECHNOLOGYDIVISION 21 Inheritancediagram Immutability 3 18 2020 21 TECHNOLOGYDIVISION 22 CollectionFrameworkComparisons 3 18 2020 22 TECHNOLOGYDIVISION 23 BenefitofEclipseCollectionscomparedtoStreamsandJCF 3 18 2020 23 StreamAPI EclipseCollections TECHNOLOGYDIVISION 24 booleanresult this people stream anyMatch person person hasPet PetType CAT longresult this people stream filter person person hasPet PetType CAT count ListpeopleWithCats this people stream filter person person hasPet PetType CAT collect Collectors toList booleanresult this people anySatisfy person person hasPet PetType CAT intresult this people count person person hasPet PetType CAT MutableListpeopleWithCats this people select person person hasPet PetType CAT WriteConciseCode 3 18 2020 24 StreamAPI EclipseCollections TECHNOLOGYDIVISION 25 Leveragemethodreferences booleanresult this people stream anyMatch person person hasPet PetType CAT longresult this people stream filter person person hasPet PetType CAT count ListpeopleWithCats this people stream filter person person hasPet PetType CAT collect Collectors toList booleanresult this people anySatisfyWith Person hasPet PetType CAT intresult this people countWith Person hasPet PetType CAT MutableListpeopleWithCats this people selectWith Person hasPet PetType CAT 3 18 2020 25 StreamAPI EclipseCollections TECHNOLOGYDIVISION 26 ListpeopleWithCats this people stream filter person person hasPet PetType CAT collect Collectors toList ListpeopleWithoutCats this people stream filter person person hasPet PetType CAT collect Collectors toList Map peopleWithcatsAndNoCats this people stream collect Collectors partitioningBy person person hasPet PetType CAT peopleWithcatsAndNoCats get true peopleWithcatsAndNoCats get false MutableListpeopleWithCats this people select person person hasPet PetType CAT MutableListpeopleWithoutCats this people reject person person hasPet PetType CAT PartitionMutableListpeopleWithcatsAndNoCats this people partition person person hasPet PetType CAT peopleWithcatsAndNoCats getSelected peopleWithcatsAndNoCats getRejected CodewithBetterReadability 3 18 2020 26 StreamAPI EclipseCollections 27 LazyIterablelazy Lists mutable with 1 2 3 asLazy Assert assertEquals 1 lazy collectInt i i min Assert assertEquals 3 lazy collectInt i i max TECHNOLOGYDIVISION throws ReuseCodeStreamstream Lists mutable with 1 2 3 stream Assert assertEquals 1 stream mapToInt i i min getAsInt Assert assertEquals 3 stream mapToInt i i max getAsInt java lang IllegalStateException streamhasalreadybeenoperateduponorclosedatjava util stream AbstractPipeline AbstractPipeline java 203 atjava util stream IntPipeline IntPipeline java 91 atjava util stream IntPipeline StatelessOp IntPipeline java 592 atjava util stream ReferencePipeline 4 ReferencePipeline java 204 atjava util stream ReferencePipeline mapToInt ReferencePipeline java 203 3 18 2020 27 Size Mb TECHNOLOGY DIVISION 28 6050403020100 Elements Datacollectedby MemoryEfficient HashSetvsUnifiedSet 3 18 2020 28 Size Mb 29 454035302520151050 Elements Datacollectedby TECHNOLOGYDIVISIONMemoryEfficient HashMapvsUnifiedMap 3 18 2020 29 Size Mb 30 2520151050 Elements Datacollectedby TECHNOLOGYDIVISIONMemoryEfficient primitivecollections 3 18 2020 30 Java Collections Eclipse Collections TECHNOLOGYDIVISION 31 ImmutableListeclipseList Lists immutable with two eclipseList each Procedures throwing appendable append Assert assertEquals onetwo appendable toString Appendableappendable newStringBuilder ListjdkList Arrays asList one jdkList forEach appendable append CompileError incompatiblethrowntypesjava io IOExceptioninmethodreferencejdkList forEach each try appendable append each catch IOExceptione thrownewRuntimeException e Assert assertEquals one appendable toString ConciseExceptionHandling 3 18 2020 31 TECHNOLOGYDIVISION 32 Appendix 3 18 2020 32 TECHNOLOGYDIVISION 33 OpenJDKEnhancedArrays sort JMHResults TestSampleAnarrayofintwithsize10 000 000 32pairflips arunofzeroesinthemiddle and32pairflipsattheend by JMHthe 3 18 2020 33 TECHNOLOGYDIVISION 34 Eageriterationpatter
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 氨纶短纤维生产建设项目节能评估报告
- 城市地下燃气管网及供气设施建设改造项目环境影响报告书
- xx镇自来水厂工程建设工程方案
- 废塑料加工项目建筑工程方案
- 300MW风力发电项目建设工程方案
- 离婚协议书:双方放弃抚养费权益及子女监护协议
- 石灰岩矿山建设项目实施方案
- 离婚谈判实战指南:三招教你如何巧妙应对谈判
- 基础研究项目终止与经费使用监督协议
- 离婚时财产分割子女抚养及共同生活费用分担协议
- 江苏历年语文高考真题答案
- DB51T 2975-2022气凝胶复合保温隔热材料及系统通用技术条件
- 外科学-第十一章-外科感染(含案例分析)课件
- 《ch棘皮动物》课件
- 急诊科岗位职责
- 中国服用过兴奋剂运动员名单 兴奋剂真的是毒品吗
- 小学英语语法时态讲解与归纳
- 《生存与修炼》熊厚音讲《道德经》教学文案
- 淘宝新店运营计划书文献
- 产教融合校企合作[可修改版ppt]课件
- ICH Q6B 生物技术产品和生物制品的检验方法和可接受标准
评论
0/150
提交评论