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



Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @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.


Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.