• About Us
  • Blog
  • Basket
  • Account
  • Sign In
  •  

Blog

Java API 3.2 released to Beta

Published on Thursday, August 27, 2015

Java API 3.2 released to Beta

Slimmer, faster and more memory efficient.

Over the past months we have been working on improving the speed and efficiency of our Java API. We are happy to announce that as of today the API has officially been released in beta and is available for download. Below is a summary of the key updates in this version.

Support for data files of version 3.2

With the Internet of things and wearable gadgets gaining traction, we are likely to see a sharp increase in the number of devices that are capable of accessing the Web. The internal structure of the 51Degrees data file has been altered in version 3.2, reducing the size by about 20% whilst retaining the same amount of information

Our Java API version 3.2 supports both V3.1 and V3.2 data files to make the transition to the new version as easy and painless as possible.

Multiple HTTP Headers

Some browsers like Opera Mini send additional HTTP headers that can be used to identify the device more accurately. We've added an extra option to supply the entire set of HTTP headers to the match procedure that will automatically find the relevant headers and use them to identify the device. This was previously an option for the Servlet implementation, but not for the core API.

The HTTP headers are now stored within the data files instead of being hard-coded so you needn't worry about updating the API when new headers get added.

Caching

In the real world you rarely find a website/web project where every requesting device is different. Usually you would see the more popular devices being used more frequently simply because there are more of them. The improved caching algorithm exploits this fact to speed up detection. Cache size can now be controlled and no longer relies on a timer to be cleared.

Re-designed implementation

The JAR files no longer contain embedded Lite data files. This means lighter JARs with less memory required, which will be of particular benefit in environments with multiple instances of the API sharing a data file.

Automatic update

This feature has been improved to make it more memory efficient. During the update the new data file is no longer fully loaded into memory. Instead, a temporary file is used. This change significantly reduces the memory footprint of the automatic update.

Unit Tests

As part of each distribution we now provide a set of tests. We run these tests prior to each release to check as many aspects of the API as possible and to ensure that any changes do not break any existing features.

Try our improved Java API:

Comments (0)

Author: Mike

Categories: Development

Tags: Device Detection , Java

Mike
>

Mike

Other posts by Mike
Contact author

Name:
Email:
Subject:
Message:
x

Tags

.NET 4G 51Degrees 5G Acer Adform Adtech Advertising Afilias Alcatel Amazon AMP Analysis Analytics Android Apache API Apple Asian Market ASP.NET Asus Blackberry Browser C C# Centro Chrome Cloud CMS CPU CSS3 Data Data Blog Data File Daydream Design Detection Developers Device Device Data Device Detection Device Intelligence Device Models Device property DeviceAtlas Disney dmexco DotNetNuke Download ebay Ericsson Event Facebook Firefox Foundation Framework Galaxy git repositories Google Google Analytics Google Daydream GPU GSMA Guess HAProxy Hash Trie HTC HTML5 HTTP HTTP Headers Huawei Infinix Ingeniux Internet usage iOS iOS 13 ipad iPadOS iPhone iPhone 11 Java Javascript Kentico LG Liferay LTE m.dot Memory Memory leak Meta Data Microsoft Mobile Mobile Analysis Mobile Analytics Mobile Devices Mobile Marketing Mixer Motorola Mozilla MWC MWC 2017 MWC16 Native Apps NET New Release News Nexus NFC NGINX Nokia OnePlus 5 Opera Operating System Oppo Optimisation OS Patent Performance PHP Press Release Price Band programmatic Publishers Python Redirection Research Responsive Images Responsive web design RESS Review RTB RWD Safari Samsung Scala ScientiaMobile SEO Server Server-side optimisation Seznam.cz Sitecore Smart TV Smartphone Smartwatches Sony Swedish Beers Tablet Tencent Testing Tips Tutorial Umbraco Update User Agent User-Agent Valgrind Varnish Varnish Cache Video Vodafone VoLTE Web Web Apps Web content management Webtrekk White Paper Widgets WiFi Windows WURFL Xiaomi Xperia ZTE