question

Upvotes
Accepted
7 1 0 7

EMA Libaray performance

Hi,

I am using EMA library and have to call different function based on field type which impacting performance of application.

As previously, we used RFA where we have simple function call , Is there any api like below in EMA too?

formatter.addField(fieldName, fidID, field_value)

Appreciate any help.


Thanks

 
              
#technologyema-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@vikas.chaudhary

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@vikas.chaudhary

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.1k 250 52 74

@vikas.chaudhary

Thanks for reaching out to us.

I assumed that you mean the MDContribFormatter example class in the legacy market data interface example.

 MDContribFormatter _formatter;

The legacy market data interface uses the MarketFeed data format which is a string representation so the data is encoded as a string.

    public void appendField(String fid, String value)
    {
        // Allow append field after making buffer
        if (_buffer.length() != 0 && _buffer.charAt(_buffer.length() - 1) == FS)
            _buffer.deleteCharAt(_buffer.length() - 1);
        _buffer.append(RS);
        _buffer.append(fid);
        _buffer.append(US);
        _buffer.append(value);
    }

However, EMA uses the Refintiv Wire Format (RWF) which is a binary representation and each data type has its own encoding function. Therefore, the application needs to know the data type of the data and then call the appropriate function to encode the data.

I hope that this information is of help.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.